C++ Language/Std/Stl/Adapters/Queue

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

By default, std::queue<int> uses a STL deque as its underlying collection class. This "queue" supports theoretical operations push(123) (essentially just a re-naming of push_back()) and pop() (essentially just a re-naming of pop_front()).

Additional information about queues (includes interactive examples)