std::stack (3) - Linux Man Pages
Defined in header <stack>
class Container = std::deque<T>
> class stack;
The std::stack class is a container adapter that gives the programmer the functionality of a stack - specifically, a LIFO (last-in, first-out) data structure.
The class template acts as a wrapper to the underlying container - only a specific set of functions is provided. The stack pushes and pops the element from the back of the underlying container, known as the top of the stack.
T - The behavior is undefined if T is not the same type as Container::value_type.
Container - * push_back()
Member type Definition
constructor (public member function)
destructor (public member function)
operator= (public member function)
top (public member function)
empty (public member function)
size (public member function)
push (public member function)
emplace constructs element in-place at the top
pop (public member function)
swap (public member function)
Container c (protected member object)
operator!= lexicographically compares the values in the stack
operator< (function template)
std::swap(std::stack) (function template)
std::uses_allocator<std::stack> specializes the std::uses_allocator type trait