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

Create a priority queue, adapting the specified `container`, having the specified `comparator` to order elements in the priority queue, including those originally existed in `container`, and those inserted into the `container` from a sequence of `value&lowbar;type` elements starting at the specified `first`, and ending immediately before the specified `last`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
priority&lowbar;queue(
    INPUT&lowbar;ITERATOR first,
    INPUT&lowbar;ITERATOR last,
    COMPARATOR const& comparator,
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;CONTAINER&gt;] container);
----


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