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

Compute the index of the smallest element in a sequence. More...

#include <tinympl/min_element.hpp>

Detailed Description

template<class Sequence, template< class... > class Cmp = less>
class tinympl::min_element< Sequence, Cmp >

Compute the index of the smallest element in a sequence.

Parameters
Sequencethe input sequence
Cmpthe comparator function; Cmp<A,B>::type::value must be convertible to bool. Defaults to tinympl::less
Returns
min_element<...>::type is an std::integral_constant<std::size_t,v> where v is the 0-based index of the minimum element
See also
variadic::min_element

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