pop [C++ Reference]
Keywords: stl,priority_queue,pop
Date: 2009-04-03T17:13:14-0700

[[pop]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## 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

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •