tinympl
0.2
mini MPL library for C++11
|
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... >.
Compute the index of the first element in the sequence which is equal to the given type T.
T | The type to be tested |
Args... | the input sequence |
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
.