C++ Language/Std/Stl/Adapters/Stack

From Wikibooks, open books for an open world
< C++ Language‎ | Std‎ | Stl‎ | Adapters
Jump to navigation Jump to search

By default, std::stack<int> uses a STL vector as its underlying collection class. This "stack" supports theoretical operations push(123), pop(), and peeking (named top()).

Additional information about stacks (includes interactive examples)