Click or drag to resize

PriorityQueueTPeek Method

Return the object with the lowest value in the PriorityQueueT without removing it.

Namespace: Ookii.Jumbo
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public T Peek()

Return Value

T
The object with the lowest value in the PriorityQueueT.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe PriorityQueueT is empty.
Remarks

This method is similar to the Dequeue method, but Peek does not modify the PriorityQueueT.

If type T is a reference type, can be added to the PriorityQueueT as a value.

This method is an O(1) operation.

See Also