push_heap « STL Algorithms Heap « C++






1.Use push_heap to push new element into the heap
2.Sort vector1 using push_heap and pop_heap