absl::c_push_heap

Overload of c_push_heap() for performing a push operation on a heap using a comp other than operator<.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename RandomAccessContainer,
    typename LessThan>
constexpr
void
c_push_heap(
    RandomAccessContainer& sequence,
    LessThan&& comp);

Parameters

NameDescription
sequenceThe heap container whose last element is pushed onto the heap.
compThe comparison used to order the heap.