Difference between revisions of "cpp/container/stack"
From cppreference.com
(swap and comparisons too, should check later if any of that is c++11) |
(Made the declaration be "stack", not "vector".) |
||
Line 5: | Line 5: | ||
class T, | class T, | ||
class Container {{=}} std::deque<T> | class Container {{=}} std::deque<T> | ||
− | > class | + | > class stack; |
}} | }} | ||
Revision as of 23:20, 7 October 2011
Template:cpp/container/stack/sidebar
Defined in header <stack>
|
||
template< class T, |
||
The std::stack
class is a container adapter that gives the programmer the functionality of a stack - specifically, a FILO (first-in, last-out) data structure.
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list end