c_min_element overloads
Synopses
Declared in <absl/algorithm/container.h>
Container‐based version of the <algorithm> std::min_element() function to return an iterator pointing to the element with the smallest value, using operator< to make the comparisons.
template<typename Sequence>
constexpr
/* implementation-defined */
c_min_element(Sequence& sequence);
Overload of c_min_element() for performing a comp comparison other than operator<.
template<
typename Sequence,
typename LessThan>
constexpr
/* implementation-defined */
c_min_element(
Sequence& sequence,
LessThan&& comp);
Return Value
-
An iterator to the smallest element.
-
An iterator to the smallest element under
comp.
Parameters
Name |
Description |
sequence |
The container to inspect. |
comp |
The comparison used to order the elements. |
Created with MrDocs