std::stack::pop - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::stack::pop

From cppreference.com
< cpp‎ | container‎ | stack

[edit template]

void pop(); |  |

Removes the top element from the stack. Effectively calls c.pop_back()

### [edit] Parameters

(none)

### [edit] Return value

(none)

### [edit] Complexity

Equal to the complexity of Container::pop_back.

### [edit] See also

emplace (C++11) | constructs element in-place at the top (public member function) [edit]
push | inserts element at the top (public member function) [edit]
top | accesses the top element (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/stack/pop&oldid=50671"