c_is_heap overloads
Declared in <absl/algorithm/container.h>
Container-based version of the <algorithm> std::is_heap() function to check whether the given container is a heap.
template<typename RandomAccessContainer>
constexpr
bool
c_is_heap(RandomAccessContainer const& sequence);
» more...
Overload of c_is_heap() for performing heap comparisons using a comp other than operator<
template<
typename RandomAccessContainer,
typename LessThan>
constexpr
bool
c_is_heap(
RandomAccessContainer const& sequence,
LessThan&& comp);
» more...
true if sequence is a max heap, otherwise false.true if sequence is a heap under comp, otherwise false.| Name | Description |
|---|---|
| sequence | The container to test. |
| comp | The comparison used to order the heap. |