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

Create a priority queue, adapting a default&hyphen;constructed container of the (template parameter) type `CONTAINER`, and inserting into the container a sequence of `value&lowbar;type` elements that starts at the specified `first` and ends immediately before the specified `last`&period; Use a default&hyphen;constructed comparator of the (template parameter) type `COMPARATOR` to order elements in the priority queue&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);
----


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