The Stack in the STL of C++ is a dynamically resizing container. Stack class is an container adapter. Containers or container classes store objects and data. There are in total seven standard "first-class" container classes and three container adaptor classes and only seven header files that provide access to these containers or container adaptors. deque container is provided as a default container.
This is a companion discussion topic for the original entry at http://iq.opengenus.org/stack-cpp-stl/