[#bsl-queue-0a5-2constructor-01]
= xref:bsl.adoc[bsl]::xref:bsl/queue-0a5.adoc[queue]::queue
:relfileprefix: ../../
:mrdocs:

Create an empty queue that uses `basicAllocator`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
explicit
queue(ALLOCATOR const& basicAllocator)
requires bsl&colon;&colon;uses&lowbar;allocator&lt;CONTAINER, ALLOCATOR&gt;&colon;&colon;value;
----

== Description

Create an empty queue&period; This queue object uses the specified `basicAllocator` to supply memory&period; Note that the `ALLOCATOR` parameter type has to be convertible to the allocator of the `CONTAINER` parameter type, `CONTAINER&colon;&colon;allocator&lowbar;type`&semi; otherwise, this constructor is disabled&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| allocator used to supply memory
|===


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