Function Dune::XT::Common::max

Function template Dune::XT::Common::max

template<class L, class R>
typename PromotionTraits<L, R>::PromotedType Dune::XT::Common::max(const L &left, const R &right)

returns the larger of two values of differing types, promoted to their common type

Function template Dune::XT::Common::max

template<class T>
T Dune::XT::Common::max(const T &left, const T &right)

returns the larger of two values of the same type