Create a priority queue by moving from container with comparator.
Synopsis
Declared in <bslstl_priorityqueue.h>
explicit
priority_queue(
COMPARATOR const& comparator,
BloombergLP::bslmf::MovableRef<CONTAINER> container);
Description
Create a priority queue, adapting the specified container of the (template parameter) type CONTAINER, and having the specified comparator of the (template parameter) type COMPARATOR to order elements in the priority queue.
Parameters
Name |
Description |
comparator |
comparator used to order elements |
container |
container to move from |
Created with MrDocs