tinympl
0.2
mini MPL library for C++11
|
Compute the index of the smallest element in a sequence. More...
#include <tinympl/min_element.hpp>
Compute the index of the smallest element in a sequence.
Sequence | the input sequence |
Cmp | the comparator function; Cmp<A,B>::type::value must be convertible to bool. Defaults to tinympl::less |
min_element<...>::type
is an std::integral_constant<std::size_t,v>
where v
is the 0-based index of the minimum element