C++ Reference: class PriorityQueueWithRestrictedPush

Note: This documentation is automatically generated.

Method
Clear

Return type: void

Clears the queue.

IsEmpty

Return type: bool

Is the queue empty?

Pop

Return type: Element

Returns the element with highest priority and remove it from the queue. IsEmpty() must be false, this condition is DCHECKed.

PriorityQueueWithRestrictedPush

Push

Return type: void

Arguments: Element element, IntegerPriority priority

Push a new element in the queue. Its priority must be greater or equal to the highest priority present in the queue, minus one. This condition is DCHECKed, and violating it yields erroneous queue behavior in NDEBUG mode.