Skip to content

PgFixedDequeEnumerator<T>

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Enumerates the two borrowed segments of a fixed deque in logical front-to-back order.

public ref struct PgFixedDequeEnumerator<T> where T : unmanaged

Type parameters:

T

The unmanaged element.

Structural changes to the queue invalidate its enumerators. This enumerator does not own storage.

Gets the current element, rejecting access before the first or after the final element.

public readonly T Current { get; }

Value: T

Advances to the next element, remaining finished after the end is reached.

public bool MoveNext()

Returns: bool

Whether another element is available.