Constructors
Synopses
Declared in <bdlc_queue.h>
Create an empty in‐place queue.
explicit
Queue(bslma::Allocator* basicAllocator = 0);
Create an in‐place queue of the specified initialLength.
explicit
Queue(
unsigned int initialLength,
bslma::Allocator* basicAllocator = 0);
Create an empty queue with the specified initial capacity.
explicit
Queue(
InitialCapacity const& numElements,
bslma::Allocator* basicAllocator = 0);
Create an in‐place queue having the same value as original.
Queue(
Queue const& original,
bslma::Allocator* basicAllocator = 0);
Create an in‐place queue of initialLength copies of initialValue.
Queue(
int initialLength,
T const& initialValue,
bslma::Allocator* basicAllocator = 0);
Create a queue from the leading numElements of srcArray.
Queue(
T const* srcArray,
int numElements,
bslma::Allocator* basicAllocator = 0);
Parameters
Name |
Description |
basicAllocator |
memory allocator; null uses the default |
initialLength |
initial number of elements |
numElements |
initial capacity specifier |
original |
queue providing the value to copy |
initialValue |
value used to initialize each element |
srcArray |
array of initial values |
Created with MrDocs