Create a queue from srcQueue with the specified high‐water mark.
Synopsis
Declared in <bdlcc_queue.h>
Queue(
bdlc::Queue<TYPE> const& srcQueue,
int highWaterMark,
bslma::Allocator* basicAllocator = 0);
Description
Create a queue of objects of parameterized TYPE containing the sequence of TYPE values from the specified srcQueue and having either the specified highWaterMark suggested maximum length if highWaterMark is positive, or no maximum length if highWaterMark is negative. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless highWaterMark != 0.
Parameters
Name |
Description |
srcQueue |
queue whose values are copied into this queue |
highWaterMark |
suggested maximum length, or negative for none |
basicAllocator |
allocator used to supply memory |
Created with MrDocs