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

Create a queue from the iterator range `&lsqb;first, last)&rsqb;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
queue(
    INPUT&lowbar;ITER first,
    INPUT&lowbar;ITER last);
----

== Description

Create a queue passing the specified `first` and `last` to the constructor of the underlying container&period; Optionally specify an `allocator` used to supply memory&period; If `allocator` is not specified, a default&hyphen;constructed object of the (template parameter) type `ALLOCATOR` is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *first*
| beginning of the range of elements to insert
| *last*
| end of the range of elements to insert
|===


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