absl::c_sort_heap

Container-based version of the <algorithm> std::sort_heap() function to sort a heap into ascending order (after which it is no longer a heap).

Synopsis

Declared in <absl/algorithm/container.h>

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

Parameters

NameDescription
sequenceThe heap container to sort.