Create a queue from the leading numElements of srcArray.
Synopsis
Declared in <bdlc_queue.h>
Queue(
T const* srcArray,
int numElements,
bslma::Allocator* basicAllocator = 0);
Description
Create an in‐place queue initialized with the specified numElements leading values from the specified srcArray. Optionally specify the basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless 0 <= numElements. Note that srcArray must refer to sufficient memory to hold numElements values.
Parameters
Name |
Description |
srcArray |
array of initial values |
numElements |
number of leading values to copy |
basicAllocator |
allocator used to supply memory |
Created with MrDocs