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

Synopsis

Declared in <absl/algorithm/container.h>

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

Parameters

Name

Description

sequence

The heap container to sort.

comp

The comparison used to order the elements.

Created with MrDocs