Container‐based version of the <algorithm> std::push_heap() function to push a value onto a container heap.

Synopsis

Declared in <absl/algorithm/container.h>

template<typename RandomAccessContainer>
constexpr
void
c_push_heap(RandomAccessContainer& sequence);

Parameters

Name

Description

sequence

The heap container whose last element is pushed onto the heap.

Created with MrDocs