Description
stack provides basic stack operations for elements. Elements can be pushed onto a stack and popped from it. The size of the stack can be obtained and the top of it examined. By default, a stack is implemented in terms of an underlying deque structure.
Declaration
template <class T, class C = deque<T> > class std::stack;
Concept
The sample program defines a stack and pushes three strings onto it. The top of the stack is displayed, and then the stack elements are displayed in the reverse order of how they were pushed.
Supported
Supported
Supported