BloombergLP::bdlcc::Queue::Queue

Create a queue containing the values from the specified srcQueue.

Synopsis

Declared in <bdlcc_queue.h>

Queue(
    bdlc::Queue<TYPE> const& srcQueue,
    bslma::Allocator* basicAllocator = 0);

Description

Create a queue of objects of parameterized TYPE containing the sequence of TYPE values from the specified srcQueue. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
srcQueuequeue whose values are copied into this queue
basicAllocatorallocator used to supply memory