Method Peek
View SourcePeek()
Returns the minimal element from the UpdatablePriorityQueue<TElement, TPriority> without removing it.
Declaration
public TElement Peek()
Returns
Type | Description |
---|---|
TElement | The minimal element of the UpdatablePriorityQueue<TElement, TPriority>. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The UpdatablePriorityQueue<TElement, TPriority> is empty. |