absl::c_make_heap

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

Synopsis

Declared in <absl/algorithm/container.h>

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

Parameters

NameDescription
sequenceThe container to rearrange into a heap.