[#absl-c_sort-00] = xref:absl.adoc[absl]::c_sort :relfileprefix: ../ :mrdocs: `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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename C> constexpr void xref:absl/c_sort-070.adoc[c_sort](C& c); ---- [.small]#xref:absl/c_sort-070.adoc[_» more..._]# Overload of `c_sort()` for performing a `comp` comparison other than the default `operator<`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename LessThan> constexpr void xref:absl/c_sort-07a.adoc[c_sort]( C& c, LessThan&& comp); ---- [.small]#xref:absl/c_sort-07a.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container to sort. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#