pop

Syntax:

    #include <stack>
    void pop();

The function pop() removes the top element of the stack and discards it.

Related Topics: push, top