Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/stack"

From cppreference.com
< cpp‎ | container
m (Text replace - "operator_comp" to "operator_cmp")
m (r2.7.3) (Robot: Adding cs, es, it, ja, pl, pt, ru, tr)
Line 54: Line 54:
 
{{dcl list template | cpp/container/dcl list uses_allocator | stack}}
 
{{dcl list template | cpp/container/dcl list uses_allocator | stack}}
 
{{dcl list end}}
 
{{dcl list end}}
 +
 +
[[cs:cpp/container/stack]]
 +
[[es:cpp/container/stack]]
 +
[[it:cpp/container/stack]]
 +
[[ja:cpp/container/stack]]
 +
[[pl:cpp/container/stack]]
 +
[[pt:cpp/container/stack]]
 +
[[ru:cpp/container/stack]]
 +
[[tr:cpp/container/stack]]

Revision as of 12:46, 4 May 2012

Template:cpp/container/stack/sidebar

Defined in header <stack>
template<

    class T,
    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 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

Member functions

Template:cpp/container/dcl list constructorTemplate:cpp/container/dcl list destructorTemplate:cpp/container/dcl list operator=Template:cpp/container/dcl list topTemplate:cpp/container/dcl list emptyTemplate:cpp/container/dcl list sizeTemplate:cpp/container/dcl list pushTemplate:cpp/container/dcl list emplaceTemplate:cpp/container/dcl list popTemplate:cpp/container/dcl list swapTemplate:cpp/container/dcl list c
Element access
Capacity
Modifiers

Member objects

Non-member functions

Template:cpp/container/dcl list operator cmpTemplate:cpp/container/dcl list swap2

Helper classes

Template:cpp/container/dcl list uses allocator