cpp/algorithm/max

Returns the greater of the given values.

@1-2@ Returns the greater of and.

@3-4@ Returns the greatest of the values in initializer list.

Overloads use  to compare the values, overloads  use the given comparison function.

Return value
@1-2@ The greater of and. If they are equivalent, returns.

@3-4@ The greatest value in. If several values are equivalent to the greatest, returns the leftmost one.

Complexity
@1-2@ Exactly one comparison

@3-4@ Exactly comparisons