Range-v3
Range algorithms, views, and actions for the Standard Library
min_element.hpp File Reference

Functions

template<typename I , typename S , typename C = less, typename P = identity>
auto ranges::min_element (I first, S last, C pred=C{}, P proj=P{}) -> I requires forward_iterator< I > &&sentinel_for< S, I > &&indirect_strict_weak_order< C, projected< I, P >>
 function template min_element
 
template<typename Rng , typename C = less, typename P = identity>
auto ranges::min_element (Rng &&rng, C pred=C{}, P proj=P{}) -> safe_iterator_t< Rng > requires forward_range< Rng > &&indirect_strict_weak_order< C, projected< iterator_t< Rng >, P >>
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.