Function 関数

objc_enumerationMutation(_:)

Inserted by the compiler when a mutation is detected during a foreach iteration. ある変異がforeach反復の間に検知される時に、コンパイラによって挿入されます。

Declaration 宣言

func objc_enumerationMutation(_ obj: Any)

Parameters パラメータ

obj

The object being mutated.

Discussion 解説

The compiler inserts this function when it detects that an object is mutated during a foreach iteration. The function is called when a mutation occurs, and the enumeration mutation handler is enacted if it is set up (via the objc_setEnumerationMutationHandler(_:) function). If the handler is not set up, a fatal error occurs.

See Also 参照

Using Objective-C Language Features Objective-C言語機能を使う