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

Compute the index of the first element in the sequence which is equal to the given type T. More...

#include <tinympl/find.hpp>

Detailed Description

template<class Sequence, typename T>
class tinympl::find< Sequence, T >

Compute the index of the first element in the sequence which is equal to the given type T.

Parameters
SequenceThe input sequence
TThe type to be tested
Returns
find<...>::type is std::integral_constant<std::size_t,v> where v is the 0-based index of the first element which is equal to T. If no such element exists, v is size<Sequence>::value.
Note
The comparison is done with tinympl::equal_to - it can be specialized
See also
variadic::find

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