Create a priority queue adapting container with comparator.
Declared in <bslstl_priorityqueue.h>
priority_queue(
COMPARATOR const& comparator,
CONTAINER const& container);
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.
| Name | Description |
|---|---|
| comparator | comparator used to order elements |
| container | container whose contents initialize this priority queue |