max

The function max is used to determine the greater of two objects by value or based upon a comparison.

  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 comp); 
  
Remarks

The greater of the two objects is returned.