Container-based version of the <algorithm> std::is_heap() function to check whether the given container is a heap.
Declared in <absl/algorithm/container.h>
template<typename RandomAccessContainer>
constexpr
bool
c_is_heap(RandomAccessContainer const& sequence);
true if sequence is a max heap, otherwise false.
| Name | Description |
|---|---|
| sequence | The container to test. |