[#BloombergLP-bdlcc-Queue-2constructor-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Queue.adoc[Queue]::Queue
:relfileprefix: ../../../
:mrdocs:

Create a queue with the specified `highWaterMark` capacity limit&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;queue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
Queue(
    int highWaterMark,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

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&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `highWaterMark !&equals; 0`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *highWaterMark*
| suggested maximum length, or negative for none
| *basicAllocator*
| allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
