Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/queue"

From cppreference.com
< cpp‎ | container
m (Text replace - "/sidebar" to "/navbar")
m (r2.7.3) (Robot: Adding de, es, fr, zh)
Line 55: Line 55:
 
{{dcl list end}}
 
{{dcl list end}}
  
 +
[[de:cpp/container/queue]]
 +
[[es:cpp/container/queue]]
 +
[[fr:cpp/container/queue]]
 
[[it:cpp/container/queue]]
 
[[it:cpp/container/queue]]
 
[[ja:cpp/container/queue]]
 
[[ja:cpp/container/queue]]
Line 61: Line 64:
 
[[ru:cpp/container/queue]]
 
[[ru:cpp/container/queue]]
 
[[tr:cpp/container/queue]]
 
[[tr:cpp/container/queue]]
 +
[[zh:cpp/container/queue]]

Revision as of 11:34, 2 November 2012

 
 
 
 
Defined in header <queue>
template<

    class T,
    class Container = std::deque<T>

> class queue;

The std::queue class is a container adapter that gives the programmer the functionality of a queue - specifically, a FIFO (first-in, first-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 frontTemplate:cpp/container/dcl list backTemplate: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