[#bsl-priority_queue-034-2constructor-03f]
= xref:bsl.adoc[bsl]::xref:bsl/priority_queue-034.adoc[priority&lowbar;queue]::priority&lowbar;queue
:relfileprefix: ../../
:mrdocs:

Create a priority queue having the same value as the specified `original` object and using the specified `basicAllocator` to supply memory&period; Use a copy of the comparator from `original` to order elements in the priority queue&period; Note that this constructor is only defined if the underlying container uses allocator&period; Otherwise this constructor is disabled&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
priority&lowbar;queue(
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;priority&lowbar;queue&gt;] original,
    ALLOCATOR const& basicAllocator,
    ALLOCATOR* = 0)
requires bsl&colon;&colon;uses&lowbar;allocator&lt;CONTAINER, ALLOCATOR&gt;&colon;&colon;value;
----


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