absl::c_is_heap

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

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename RandomAccessContainer,
    typename LessThan>
constexpr
bool
c_is_heap(
    RandomAccessContainer const& sequence,
    LessThan&& comp);

Return Value

true if sequence is a heap under comp, otherwise false.

Parameters

NameDescription
sequenceThe container to test.
compThe comparison used to order the heap.