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


struct NSFastEnumerationState


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


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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software