Click or drag to resize

PriorityQueueTPeek Method

Namespace:  Ookii.Collections.Generic
Assembly:  Ookii.Collections.Generic (in Ookii.Collections.Generic.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public T Peek()

Return Value

Type: T
The object with the lowest value in the PriorityQueueT.
Exceptions
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