Friday, October 30, 2009

C++ Priority Queues

C++ Priority Queues

C++ Priority Queues are like queues, but the elements inside the queue are ordered by some predicate.

Constructorsconstruct a new priority queue
emptytrue if the priority queue has no elements
popremoves the top element of a priority queue
pushadds an element to the end of the priority queue
sizereturns the number of items in the priority queue
topreturns the top element of the priority queue

No comments:

Post a Comment

Popular Posts