cpp/algorithm/ranges/max element

@1@ Finds the greatest element in the range. @2@ Same as, but uses as the source range, as if using  as  and  as.

Return value
Iterator to the greatest element in the range. If several elements in the range are equivalent to the greatest element, returns the iterator to the first such element. Returns if the range is empty.

Complexity
Exactly $max(N - 1, 0)$ comparisons, where.