Create a priority queue by moving from original using basicAllocator.
Declared in <bslstl_priorityqueue.h>
template<class ALLOCATOR>
priority_queue(
BloombergLP::bslmf::MovableRef<priority_queue> original,
ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
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.
| Name | Description |
|---|---|
| original | priority queue to move from |
| basicAllocator | allocator used to supply memory |