template<class RandomAccessIterator>
void push_heap(RandomAccessIterator first, RandomAccessIterator last);
template<class RandomAccessIterator, class Compare>
void push_heap(RandomAccessIterator first, RandomAccessIterator last,
Compare comp);
Requires:
The range
[first, last - 1)
shall be a valid heap
. The type of
*first shall satisfy
the
MoveConstructible requirements
(Table
23) and the
MoveAssignable requirements
(Table
25)
.Effects:
Places the value in the location
last - 1
into the resulting heap
[first, last). Complexity:
At most
comparisons
.