| PriorityQueueTGetEnumerator Method |
Returns an enumerator that iterates through the values in the
PriorityQueueT.
Namespace:
Ookii.Collections.Generic
Assembly:
Ookii.Collections.Generic (in Ookii.Collections.Generic.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public 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
IEnumerableTGetEnumeratorRemarks
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