tinympl  0.2
mini MPL library for C++11
tinympl::count_if< Sequence, F > Class Template Reference

Counts the number of elements which satisfy a given predicate. More...

#include <tinympl/count_if.hpp>

Detailed Description

template<class Sequence, template< class...T > class F>
class tinympl::count_if< Sequence, F >

Counts the number of elements which satisfy a given predicate.

Parameters
SequenceThe input sequence
FThe predicate - F<T>::type::value shall be convertible to bool
Returns
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.
See also
variadic::count_if

The documentation for this class was generated from the following file: