Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::v3::minmax_fn Struct Reference

Public Member Functions

template<typename Rng , typename C = ordered_less, typename P = ident, typename I = range_iterator_t<Rng>, typename V = iterator_value_t<I>, typename R = tagged_pair<tag::min(V), tag::max(V)>, requires = (InputRange<Rng>() && Copyable<V>() && IndirectCallableRelation<C, projected<I, P>>())>
operator() (Rng &&rng, C pred_=C{}, P proj_=P{}) const
 
template<typename T , typename C = ordered_less, typename P = ident, requires = ( IndirectCallableRelation<C, projected<const T *, P>>())>
constexpr tagged_pair< tag::min(T const &), tag::max(T const &)> operator() (T const &a, T const &b, C pred=C{}, P proj=P{}) const