Finds the attribute of the given class in the collection (constant version).
Pointer to the attribute of the given class.
Returns 0 if the attribute of the given class in the collection is not found.