Επεξεργασία

Κοινή χρήση μέσω


PriorityQueue<TElement,TPriority>.Dequeue Method

Definition

Removes and returns the minimal element from the PriorityQueue<TElement,TPriority> - that is, the element with the lowest priority value.

public:
 TElement Dequeue();
public TElement Dequeue ();
member this.Dequeue : unit -> 'Element
Public Function Dequeue () As TElement

Returns

TElement

The minimal element of the PriorityQueue<TElement,TPriority>.

Exceptions

The queue is empty.

Applies to