Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The latest version of this topic can be found at push_heap (STL/CLR).
Adds an element that is at the end of a range to an existing heap consisting of the prior elements in the range.
Syntax
template<class _RanIt> inline
void push_heap(_RanIt _First, _RanIt _Last);
template<class _RanIt, class _Pr> inline
void push_heap(_RanIt _First, _RanIt _Last, _Pr _Pred);
Remarks
This function behaves the same as the STL function push_heap. For more information, see push_heap.
Requirements
Header: <cliext/algorithm>
Namespace: cliext