cpp/algorithm/ranges/max

Returns the greater of the given projected values.

@1@ Returns the greater of and. @2@ Returns the first greatest value in the initializer list. @3@ Returns the first greatest value in the range.

Return value
@1@ The greater of and, according to their respective projected values. If they are equivalent, returns.

@2-3@ The greatest value in, according to the projection. If several values are equivalent to the greatest, returns the leftmost one. If the range is empty (as determined by ), the behavior is undefined.

Complexity
@1@ Exactly one comparison.

@2-3@ Exactly comparisons.