Defined in header <algorithm> (1) template< class T >
const T& max( const T& a, const T& b ); (until C++14) template< class T >
constexpr const T& max( const T& a, const T& b ); (since C++14) (2) template< class T, class Compare >
const T& max( const T& a, const T& b, Compare comp ); (until C++14) template< class T, class Compare >
constexpr const T& max( const T& a, const T& b, Compare co