Method ADT.Heap()->pop()


Method pop

ValueType pop()

Description

Removes and returns the item on top of the heap, which also is the smallest value in the heap.

Throws

Throws an error if the heap is empty.

See also

low_pop(), peek(), push(), remove()