 | PriorityQueueTGetEnumerator Method |
Returns an enumerator that iterates through the values in the
PriorityQueueT.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntaxpublic IEnumerator<T> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of T)
public:
virtual IEnumerator<T>^ GetEnumerator() sealed
abstract GetEnumerator : unit -> IEnumerator<'T>
override GetEnumerator : unit -> IEnumerator<'T>
Return Value
Type:
IEnumeratorTAn 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