c_stable_sort overloads
Declared in <absl/algorithm/container.h>
Container-based version of the <algorithm> std::stable_sort() function to sort elements in ascending order of their values, preserving the order of equivalents.
template<typename C>
void
c_stable_sort(C& c);
» more...
Overload of c_stable_sort() for performing a comp comparison other than the default operator<.
template<
typename C,
typename LessThan>
void
c_stable_sort(
C& c,
LessThan&& comp);
» more...
| Name | Description |
|---|---|
| c | The container to sort. |
| comp | The comparison used to order the elements. |