Removes and returns the item at the front of the queue. Call Pop to retrieve an item from the queue. Pop removes the next item from the queue (that is, the next item based on priority and sort order), then returns the object of the deleted item.
To access the queue without removing an item, call DataStructures.TIntPriorityQueue.Peek .
Namespace: DataStructures
Delphi |
public |
Return Value
Type: TObject
The following code pops objects off the queue until it is empty:
|