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

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename RandomAccessContainer,
    typename LessThan>
constexpr
/* implementation-defined */
c_is_heap_until(
    RandomAccessContainer& sequence,
    LessThan&& comp);

Return Value

An iterator to the first element not in heap order under comp, or the end iterator if the whole container is a heap.

Parameters

Name

Description

sequence

The container to inspect.

comp

The comparison used to order the heap.

Created with MrDocs