make_heap « STL Algorithms Heap « C++






1.Use make_heap to convert collection into a heap
2.Use std::make_heap to create heap from a vector
3.Sort vector1 using make_heap and sort_heap