This class is a value‐semantic class template, having a container of the parameterized CONTAINER type that holds elements of the parameterized VALUE type, to provide a first‐in‐first‐out queue data structure. The container object held by a queue class object is referenced as c in the following function‐level documentation.
Synopsis
Declared in <bslstl_queue.h>
template<
class VALUE,
class CONTAINER = deque<VALUE>>
class queue;
Type Aliases
Name |
Description |
This |
|
This |
|
This |
|
This |
|
This |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
|
|
Push onto this queue a newly created |
|
Return |
|
|
|
Remove the front (the earliest pushed) element from this |
|
|
|
Push onto the back of this queue the elements of the specified |
|
Return the number of elements in this queue. In effect, performs |
|
Efficiently exchange the value of this object with the value of the specified |
|
Declare that |
Protected Data Members
Name |
Description |
Contains the elements of this queue. This member is |
Deduction Guides
Name |
Description |
Deduce the template parameter |
|
Deduce the template parameters |
|
|
Deduce the template parameters |
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameter |
Friends
Name |
Description |
Return the three‐way comparison of the specified queues; see the non‐member |
|
Return whether the specified queues compare lexicographically; see the non‐member |
|
Return whether the specified queues compare lexicographically; see the non‐member |
|
Return whether the specified queues compare lexicographically; see the non‐member |
|
Return whether the specified queues compare lexicographically; see the non‐member |
|
Return whether the specified queues do not have the same value; see the non‐member |
|
Return whether the specified queues have the same value; see the non‐member |
Non-Member Functions
Name |
Description |
Return |
|
Return |
|
Return |
|
Return the three‐way comparison result of the specified |
|
Return |
|
Return |
|
Return |
|
Swap the value of the specified |
Created with MrDocs