c_push_heap overloads
Declared in <absl/algorithm/container.h>
Container-based version of the <algorithm> std::push_heap() function to push a value onto a container heap.
template<typename RandomAccessContainer>
constexpr
void
c_push_heap(RandomAccessContainer& sequence);
» more...
Overload of c_push_heap() for performing a push operation on a heap using a comp other than operator<.
template<
typename RandomAccessContainer,
typename LessThan>
constexpr
void
c_push_heap(
RandomAccessContainer& sequence,
LessThan&& comp);
» more...
| Name | Description |
|---|---|
| sequence | The heap container whose last element is pushed onto the heap. |
| comp | The comparison used to order the heap. |