Template parameters
Parameter | Description | Default |
---|---|---|
T |
The type of object stored in the priority queue. | |
Sequence |
The type of the underlying container used to implement the priority queue. | vector |
Compare |
The comparison function used to determine whether one element is smaller than another element. If Compare(x,y) is true, then x is smaller than y. The element returned by Q.top() is the largest element in the priority queue. That is, it has the property that, for every other element x in the priority queue, Compare(Q.top(), x) is false. | less |
Loading...