Structure

NSFastEnumerationState

This defines the structure used as contextual information in the NSFastEnumeration protocol.

Declaration

struct NSFastEnumerationState

Overview

For more information, see countByEnumerating(with:objects:count:).

Topics

Instance Properties

var extra: (UInt, UInt, UInt, UInt, UInt)

A C array that you can use to hold returned values.

var mutationsPtr: UnsafeMutablePointer<UInt>?

Arbitrary state information used to detect whether the collection has been mutated.

var state: UInt

Arbitrary state information used by the iterator. Typically this is set to 0 at the beginning of the iteration.