Click or drag to resize

PriorityQueueTGetEnumerator Method

Returns an enumerator that iterates through the values in the PriorityQueueT.

Namespace: Ookii.Jumbo
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public IEnumerator<T> GetEnumerator()

Return Value

IEnumeratorT
An enumerator that iterates through the values in the PriorityQueueT.

Implements

IEnumerableTGetEnumerator
Remarks

The elements of the PriorityQueueT will be enumerated in the same order as if you had called Dequeue until the PriorityQueueT was empty. I.e. the elements are enumerated from lowest to highest value, in sorted order.

The contents of the PriorityQueueT are not modified by enumerating.

This method is an O(n log n) operation, where n is Count.

See Also