Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::push_heap is an STL heap algorithm to add a new value to a heap, where the heap structure is maintained.
#include <algorithm> |
Screen output:
Initial std::vector: 1 2 3 4 5 |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.