c_is_heap overloads
Synopses
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);
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);
Return Value
-
trueifsequenceis a max heap, otherwisefalse. -
trueifsequenceis a heap undercomp, otherwisefalse.
Parameters
Name |
Description |
sequence |
The container to test. |
comp |
The comparison used to order the heap. |
Created with MrDocs