[#absl-c_sort_heap-09] = xref:absl.adoc[absl]::c_sort_heap :relfileprefix: ../ :mrdocs: `c_sort_heap` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::sort_heap()` function to sort a heap into ascending order (after which it is no longer a heap). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename RandomAccessContainer> constexpr void xref:absl/c_sort_heap-0d.adoc[c_sort_heap](RandomAccessContainer& sequence); ---- [.small]#xref:absl/c_sort_heap-0d.adoc[_» more..._]# Overload of `c_sort_heap()` for performing heap comparisons using a `comp` other than `operator<` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename RandomAccessContainer, typename LessThan> constexpr void xref:absl/c_sort_heap-0a.adoc[c_sort_heap]( RandomAccessContainer& sequence, LessThan&& comp); ---- [.small]#xref:absl/c_sort_heap-0a.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *sequence* | The heap container to sort. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#