cpp/algorithm/ranges/min

Returns the smaller of the given projected elements.

@1@ Returns the smaller of and. @2@ Returns the first smallest element in the initializer list. @3@ Returns the first smallest value in the range.

Return value
@1@ The smaller of and, according to the projection. If they are equivalent, returns.

@2-3@ The smallest element in, according to the projection. If several values are equivalent to the smallest, 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