max |
Return the maximum of two items.
Return the larger of a
and b , or return a if a
and b are equal. The first version uses operator<
to perform the comparison, whereas the second version uses the binary function compare.
#include <algorithm>
template< class T >
const T& max( const T& a, const T& b );
template< class T, class Compare >
const T& max( const T& a, const T& b, Compare compare );
Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.