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

Create an in&hyphen;place queue having the same value as `original`&period;

== Synopsis

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

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

== Description

Create an in&hyphen;place queue initialized to the value of the specified `original` queue&period; Optionally specify the `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| queue providing the value to copy
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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