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/find.hpp>
Compute the index of the first element in the sequence which is equal to the given type T.
Sequence | The input sequence |
T | The type to be tested |
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
.