Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/stack"

From cppreference.com
< cpp‎ | container
m (Text replace - "{{tdcl" to "{{dcl")
m (Text replace - "container/tdcl" to "container/dcl")
Line 13: Line 13:
 
{{dcl list begin}}
 
{{dcl list begin}}
 
{{dcl list hitem | Member type | Definition}}
 
{{dcl list hitem | Member type | Definition}}
{{dcl list template | cpp/container/tdcl list container_type | stack}}
+
{{dcl list template | cpp/container/dcl list container_type | stack}}
{{dcl list template | cpp/container/tdcl list value_type | stack}}
+
{{dcl list template | cpp/container/dcl list value_type | stack}}
{{dcl list template | cpp/container/tdcl list size_type | stack}}
+
{{dcl list template | cpp/container/dcl list size_type | stack}}
{{dcl list template | cpp/container/tdcl list reference | stack}}
+
{{dcl list template | cpp/container/dcl list reference | stack}}
{{dcl list template | cpp/container/tdcl list const_reference | stack}}
+
{{dcl list template | cpp/container/dcl list const_reference | stack}}
 
{{dcl list end}}
 
{{dcl list end}}
  

Revision as of 02:07, 12 June 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:cpp/container/dcl list container typeTemplate:cpp/container/dcl list value typeTemplate:cpp/container/dcl list size typeTemplate:cpp/container/dcl list referenceTemplate:cpp/container/dcl list const reference
Member type Definition

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