Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/queue"

From cppreference.com
< cpp‎ | container
(target has been moved)
m (Text replace - "operator_comp" to "operator_cmp")
Line 46: Line 46:
 
===Non-member functions===
 
===Non-member functions===
 
{{dcl list begin}}
 
{{dcl list begin}}
{{dcl list template | cpp/container/dcl list operator_comp | queue}}
+
{{dcl list template | cpp/container/dcl list operator_cmp | queue}}
 
{{dcl list template | cpp/container/dcl list swap2 | queue}}
 
{{dcl list template | cpp/container/dcl list swap2 | queue}}
 
{{dcl list end}}
 
{{dcl list end}}

Revision as of 16:54, 7 December 2011

Template:cpp/container/queue/sidebar

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: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 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