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