[#bsl-priority_queue-034-2constructor-00] = xref:bsl.adoc[bsl]::xref:bsl/priority_queue-034.adoc[priority_queue]::priority_queue :relfileprefix: ../../ :mrdocs: Create an empty priority queue that uses `basicAllocator`. == Synopsis Declared in `<bslstl_priorityqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> explicit priority_queue(ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- == Description Create an empty priority queue, adapting a default‐constructed container of the (template parameter) type `CONTAINER` that uses the specified `basicAllocator` to supply memory. Use a default‐constructed object of the (template parameter) type `COMPARATOR` 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. == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#