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

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

#include <tinympl/variadic/max_element.hpp>

Inherits tinympl::variadic::min_element< bind< Cmp, arg2, arg1 >::template eval_t, Args... >.

Detailed Description

template<template< class... > class Cmp, class... Args>
class tinympl::variadic::max_element< Cmp, Args >

Compute the index of the largest element in a sequence.

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

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