queue (STL/CLR)
The template class describes an object that controls a varying-length sequence of elements that has first-in first-out access. You use the container adapter queue to manage an underlying container as a queue.
In the description below, GValue is the same as Value unless the latter is a ref type, in which case it is Value^. Similarly, GContainer is the same as Container unless the latter is a ref type, in which case it is Container^.
template<typename Value,
typename Container>
ref class queue
: public
System::ICloneable,
Microsoft::VisualC::StlClr::IQueue<GValue, GContainer>
{ ..... };
Parameters
Value
The type of an element in the controlled sequence.Container
The type of the underlying container.
Members
Type Definition |
Description |
---|---|
The type of a constant reference to an element. |
|
The type of the underlying container. |
|
The type of a signed distance between two elements. |
|
The type of the generic interface for the container adapter. |
|
The type of an element for the generic interface for the container adapter. |
|
The type of a reference to an element. |
|
The type of a signed distance between two elements. |
|
The type of an element. |
Member Function |
Description |
---|---|
Replaces all elements. |
|
Accesses the last element. |
|
Tests whether no elements are present. |
|
Accesses the first element. |
|
Accesses the underlying container. |
|
Removes the last element. |
|
Adds a new last element. |
|
Constructs a container object. |
|
Counts the number of elements. |
|
Copies the controlled sequence to a new array. |
Property |
Description |
---|---|
Accesses the last element. |
|
Accesses the first element. |
Operator |
Description |
---|---|
Replaces the controlled sequence. |
|
Determines if a queue object is not equal to another queue object. |
|
Determines if a queue object is less than another queue object. |
|
Determines if a queue object is less than or equal to another queue object. |
|
Determines if a queue object is equal to another queue object. |
|
Determines if a queue object is greater than another queue object. |
|
Determines if a queue object is greater than or equal to another queue object. |
Interfaces
Interface |
Description |
---|---|
Duplicate an object. |
|
IQueue<Value, Container> |
Maintain generic container adapter. |
Remarks
The object allocates and frees storage for the sequence it controls through an underlying container, of type Container, that stores Value elements and grows on demand. The object restricts access to just pushing the first element and popping the last element, implementing a first-in first-out queue (also known as a FIFO queue, or simply a queue).
Requirements
Header: <cliext/queue>
Namespace: cliext