[#BloombergLP-bdlcc-Queue-2constructor-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Queue.adoc[Queue]::Queue :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlcc_queue.h>` Create a queue of objects of parameterized `TYPE`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlcc/Queue/2constructor-030.adoc[Queue](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/Queue/2constructor-030.adoc[_» more..._]# Create a queue of objects of parameterized `TYPE` 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`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlcc/Queue/2constructor-01.adoc[Queue]( int highWaterMark, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/Queue/2constructor-01.adoc[_» more..._]# Create a queue of objects of parameterized `TYPE` with sufficient initial capacity to accommodate up to the specified `numItems` values without subsequent reallocation. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlcc/Queue/2constructor-039.adoc[Queue]( xref:BloombergLP/bdlcc/Queue/InitialCapacity.adoc[InitialCapacity] const& numItems, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/Queue/2constructor-039.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlcc/Queue/2constructor-08.adoc[Queue]( xref:BloombergLP/bdlc/Queue.adoc[bdlc::Queue<TYPE>] const& srcQueue, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/Queue/2constructor-08.adoc[_» more..._]# Create a queue of objects of parameterized `TYPE` with sufficient initial capacity to accommodate up to the specified `numItems` values without subsequent reallocation 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`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlcc/Queue/2constructor-0d.adoc[Queue]( xref:BloombergLP/bdlcc/Queue/InitialCapacity.adoc[InitialCapacity] const& numItems, int highWaterMark, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/Queue/2constructor-0d.adoc[_» more..._]# 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`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlcc/Queue/2constructor-09.adoc[Queue]( xref:BloombergLP/bdlc/Queue.adoc[bdlc::Queue<TYPE>] const& srcQueue, int highWaterMark, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/Queue/2constructor-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#