absl::c_sort_heap

c_sort_heap overloads

Synopses

Declared in <absl/algorithm/container.h>

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).

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

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

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

Parameters

NameDescription
sequenceThe heap container to sort.
compThe comparison used to order the elements.