[#absl-c_push_heap-0e]
= xref:absl.adoc[absl]::c&lowbar;push&lowbar;heap
:relfileprefix: ../
:mrdocs:

`c&lowbar;push&lowbar;heap` overloads

== Synopses

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;push&lowbar;heap()` function to push a value onto a container heap&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename RandomAccessContainer&gt;
constexpr
void
xref:absl/c_push_heap-0f.adoc[c&lowbar;push&lowbar;heap](RandomAccessContainer& sequence);
----

[.small]#xref:absl/c_push_heap-0f.adoc[_» more&period;&period;&period;_]#

Overload of `c&lowbar;push&lowbar;heap()` for performing a push operation on a heap using a `comp` other than `operator&lt;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename RandomAccessContainer,
    typename LessThan&gt;
constexpr
void
xref:absl/c_push_heap-03.adoc[c&lowbar;push&lowbar;heap](
    RandomAccessContainer& sequence,
    LessThan&& comp);
----

[.small]#xref:absl/c_push_heap-03.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sequence*
| The heap container whose last element is pushed onto the heap&period;
| *comp*
| The comparison used to order the heap&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
