In this cpp standard template library programming tutorial I have discussed functions from algorithm header file to maintain a heap data structure taking a vector as a container for both max heap and min heap.
functions covered -
make_heap
push_heap
pop_heap
is_heap
is_heap_until