cppreference.com > C++ Stacks > pop
pop
Syntax:
  void pop();

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