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

Detailed Description

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

index of a the first element in the sequence which satisfies a given predicate

Parameters
SequenceThe input sequence
FThe test predicate - F<T>::type::value shall be convertible to bool
Returns
find_if<...>::type is std::integral_constant<std::size_t,v> where v is the 0-based index of the first element which satisfy F. If no such element exists, v is size<Sequence>::value.
See also
variadic::find_if

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