@@ -80,10 +80,12 @@ * @param state Context information for the enumeration * @param objects A pointer to an array where to put the objects * @param count The number of objects that can be stored at objects * @return The number of objects returned in objects or 0 when the enumeration * finished. + * @throw OFEnumerationMutationException The object was mutated during + * enumeration */ - (int)countByEnumeratingWithState: (OFFastEnumerationState *)state objects: (id __unsafe_unretained _Nonnull *_Nonnull) objects count: (int)count; @@ -96,18 +98,16 @@ */ @interface OFEnumerator OF_GENERIC(ObjectType): OFObject #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # define ObjectType id #endif -{ - OF_RESERVE_IVARS(OFEnumerator, 4) -} - /** * @brief Returns the next object or `nil` if there is none left. * * @return The next object or `nil` if there is none left + * @throw OFEnumerationMutationException The object was mutated during + * enumeration */ - (nullable ObjectType)nextObject; /** * @brief Returns an array of all remaining objects in the collection.