[#bsl-priority_queue-034-2constructor-0b] = xref:bsl.adoc[bsl]::xref:bsl/priority_queue-034.adoc[priority_queue]::priority_queue :relfileprefix: ../../ :mrdocs: Create a priority queue having the same value as the specified `original` object and using the specified `basicAllocator` to supply memory. Use a copy of the comparator from `original` to order elements in the priority queue. Note that this constructor is only defined if the underlying container uses allocator. Otherwise this constructor is disabled. == Synopsis Declared in `<bslstl_priorityqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> priority_queue( xref:bsl/priority_queue-034.adoc[priority_queue] const& original, ALLOCATOR const& basicAllocator, ALLOCATOR* = 0) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#