tinympl
0.2
mini MPL library for C++11
|
Counts the number of elements which satisfy a given predicate. More...
#include <tinympl/count_if.hpp>
Counts the number of elements which satisfy a given predicate.
Sequence | The input sequence |
F | The predicate - F<T>::type::value shall be convertible to bool |
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
.