absl::c_make_heap

c_make_heap overloads

Synopses

Declared in <absl/algorithm/container.h>

Container-based version of the <algorithm> std::make_heap() function to make a container a heap.

template<typename RandomAccessContainer>
constexpr
void
c_make_heap(RandomAccessContainer& sequence);
» more...

Overload of c_make_heap() for performing heap comparisons using a comp other than operator<

template<
    typename RandomAccessContainer,
    typename LessThan>
constexpr
void
c_make_heap(
    RandomAccessContainer& sequence,
    LessThan&& comp);
» more...

Parameters

NameDescription
sequenceThe container to rearrange into a heap.
compThe comparison used to order the heap.