absl::c_partial_sort

Overload of c_partial_sort() for performing a comp comparison other than the default operator<.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename RandomAccessContainer,
    typename LessThan>
constexpr
void
c_partial_sort(
    RandomAccessContainer& sequence,
    /* implementation-defined */ middle,
    LessThan&& comp);

Parameters

NameDescription
sequenceThe container to partially sort.
middleAn iterator to the end of the range to be sorted.
compThe comparison used to order the elements.