pop

Syntax:

    #include <queue>
    void pop();

The function pop() removes the top element of the priority queue and discards it. The top element is greater or at least as great as any other element in the priority queue.

pop() runs in logarithmic time.

Related Topics: push, top