Struct PriorityQueue<TElement, TPriority>.UnorderedItemsCollection.Enumerator
Enumerates the element and priority pairs of a PriorityQueue<TElement, TPriority>, without any ordering guarantees.
Namespace: GGL.Collections
Assembly: GGL.dll
Syntax
public struct PriorityQueue<TElement, TPriority>.UnorderedItemsCollection.Enumerator
Properties
| Edit this page View SourceCurrent
Gets the element at the current position of the enumerator.
Declaration
public (TElement Element, TPriority Priority) Current { get; }
Property Value
Type | Description |
---|---|
(TElement Element, TPriority Priority) | Enumerates the element and priority pairs of a , without any ordering guarantees. |
Methods
| Edit this page View SourceDispose()
Releases all resources used by the PriorityQueue<TElement, TPriority>.UnorderedItemsCollection.Enumerator.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next element of the UnorderedItems.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
bool | true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. |