Skip to content
CShift0.45

SlotMapEnumerator<T>

Struct · namespace System · Since 0.42

struct SlotMapEnumerator<T>

The cursor of foreach over a SlotMap (SlotMap<T>.GetEnumerator): the elements with their handles.

Name Description
Over A cursor before the first place of the storage of a slot map.
static SlotMapEnumerator<T> Over(SlotMapState<T>[] state)

A cursor before the first place of the storage of a slot map.

Name Description
MoveNext Moves to the next element; false after the last one.
Current The current element and its handle, as a tuple (Handle, Value).
bool MoveNext()

Moves to the next element; false after the last one.

Tuple2<Handle<T>, T> Current()

The current element and its handle, as a tuple (Handle, Value).