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.
Synopsis
Declared in <bslstl_priorityqueue.h>
template<
class VALUE,
class CONTAINER = vector<VALUE>,
class COMPARATOR = std::less<CONTAINER::value_type>>
class priority_queue;
Type Aliases
Name |
Description |
This |
|
This |
|
This |
|
This |
|
This |
|
This |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Insert into this priority queue a newly created |
|
Return |
|
Remove the top element from this |
|
Insert the specified |
|
Insert the elements of the specified |
|
Return the number of elements in this |
|
Efficiently exchange the value of this object with the value of the specified |
|
Return a reference providing non‐modifiable access to the element having the highest priority in this |
|
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 |