Highest‐priority‐first priority queue adapter over a container of VALUE elements.
Synopsis
Declared in <bslstl_priorityqueue.h>
template<
class VALUE,
class CONTAINER = vector<VALUE>,
class COMPARATOR = std::less<CONTAINER::value_type>>
class priority_queue;
Description
This class is a value‐semantic class template, adapting a container of the (template parameter) type CONTAINER, that holds elements of the (template parameter) type VALUE, to provide a highest‐priority‐first priority queue data structure, where the priorities of elements are compared by a comparator of the template parameter type, COMPARATOR. The container object held by a priority_queue class object is referenced as c in the following documentation.
Type Aliases
Name |
Description |
This |
|
This |
|
This |
|
This |
|
This |
|
This |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Emplace a newly constructed element into this priority queue. |
|
Return |
|
Remove the highest‐priority element from this priority queue. |
|
|
|
Insert the elements of the specified |
|
Return the number of elements in this |
|
Efficiently exchange the value of this object with |
|
Return a reference to the highest‐priority element. |
|
Nested trait declaration for |
Protected Data Members
Deduction Guides
Name |
Description |
Deduce the template parameter |
|
Deduce the template parameter |
|
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameter |
|
Deduce the template parameters |