 | PriorityQueueTGetEnumerator Method |
Returns an enumerator that iterates through the values in the
PriorityQueueT.
Namespace: Ookii.JumboAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
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
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