PriorityQueue<TElement,TPriority>.Peek Method

Definition

Returns the minimal element from the PriorityQueue<TElement,TPriority> without removing it.

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

Returns

TElement

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

Exceptions

Applies to