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

Name

Description

sequence

The heap container whose last element is pushed onto the heap.

comp

The comparison used to order the heap.

Created with MrDocs