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

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

#include <tinympl/variadic/find.hpp>

Inherits tinympl::variadic::find_if< bind< equal_to, arg1, T >::template eval_t, Args... >.

Detailed Description

template<typename T, class... Args>
class tinympl::variadic::find< T, Args >

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

Parameters
TThe type to be tested
Args...the input sequence
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
tinympl::find

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