PriorityQueue<T>.Dequeue method

Removes and returns the smallest item from the PriorityQueue. This operation takes O(log n) time.

public T Dequeue()

Return Value

The smallest item in the PriorityQueue.

Exceptions

exception condition
InvalidOperationException The priority queue is empty.

See Also