absl::c_sort

c_sort overloads

Synopses

Declared in <absl/algorithm/container.h>

Container-based version of the <algorithm> std::sort() function to sort elements in ascending order of their values.

template<typename C>
constexpr
void
c_sort(C& c);
» more...

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

template<
    typename C,
    typename LessThan>
constexpr
void
c_sort(
    C& c,
    LessThan&& comp);
» more...

Parameters

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