Overload of c_nth_element() for performing a comp comparison other than the default operator<.
Declared in <absl/algorithm/container.h>
template<
typename RandomAccessContainer,
typename LessThan>
constexpr
void
c_nth_element(
RandomAccessContainer& sequence,
/* implementation-defined */ nth,
LessThan&& comp);
| Name | Description |
|---|---|
| sequence | The container to rearrange. |
| nth | An iterator to the element to place in its sorted position. |
| comp | The comparison used to order the elements. |