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

Create a priority queue having the value of the specified `original`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
priority&lowbar;queue(xref:bsl/priority_queue-034.adoc[priority&lowbar;queue] const& original);
----

== Description

Create a priority queue having the same value as the specified `original` object&period; Use a copy of the comparator from `original` to order elements in the priority queue&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| priority queue to copy
|===


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