tinympl
0.2
mini MPL library for C++11
|
Counts the number of elements which satisfy a given predicate. More...
#include <tinympl/variadic/count_if.hpp>
Counts the number of elements which satisfy a given predicate.
F | The predicate - F<T>::type::value shall be convertible to bool |
Args... | the input sequence |
count_if<...>::type
is std::integral_constant<std::size_t,V>
where V
is the number of elements in the sequence which satisfy the predicate F
.