[#bsl-priority_queue-034-2constructor-03d] = xref:bsl.adoc[bsl]::xref:bsl/priority_queue-034.adoc[priority_queue]::priority_queue :relfileprefix: ../../ :mrdocs: Create a priority queue from the elements of the specified `range`. Optionally specify a `comparator` used to order elements in the priority queue. Optionally supply an `allocator` to supply memory. If `allocator` is not supplied and if `CONTAINER` is allocator aware, the currently installed default allocator is used. Note that `range` must (minimally) meet the requirements of an input range and the values from the range must have a type matching or convertible to (template parameter) `VALUE`. Also note that the constructor overloads that take allocators are defined only if the underlying `CONTAINTER` is allocator aware. == Synopsis Declared in `<bslstl_priorityqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_RANGE> priority_queue( std::from_range_t, t_RANGE&& range, COMPARATOR const& comparator = COMPARATOR()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#