bsl::priority_queue::priority_queue

Create an empty priority queue with the specified comparator.

Synopsis

Declared in <bslstl_priorityqueue.h>

explicit
priority_queue(COMPARATOR const& comparator);

Description

Create an empty priority queue, adapting a default-constructed 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

NameDescription
comparatorcomparator used to order elements