C++ Priority Queues
Syntax:
The empty() function returns true if the current priority queue is empty, and false otherwise.
Syntax:
The function pop() discards the first element in the current priority queue.
Syntax:
void push( const TYPE &val );
|
The function push() adds an element to the current priority queue.
Syntax:
The size() function returns the number of things in the current priority queue.
Syntax:
The top() function returns a reference to the element in the queue with the highest priority. Note that
only pop() removes an element.