absl::c_stable_sort

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

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename LessThan>
void
c_stable_sort(
    C& c,
    LessThan&& comp);

Parameters

NameDescription
cThe container to sort.
compThe comparison used to order the elements.