@@ -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; @@ -100,20 +102,24 @@ #endif /** * @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. * * @return An array of all remaining objects in the collection. + * @throw OFEnumerationMutationException The object was mutated during + * enumeration */ - (OFArray OF_GENERIC(ObjectType) *)allObjects; #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) # undef ObjectType #endif @end OF_ASSUME_NONNULL_END