member(_:)
Determines whether the hash table contains a given object, and returns that object if it is present
Declaration
func member(_ object: ObjectType?) -> ObjectType?Parameters
- object:
The object to test for membership in the hash table.
Return Value
If object is a member of the hash table, returns object, otherwise returns nil.
Discussion
The equality test used depends on the personality option selected. For instance, choosing the objectPersonality option will use isEqual: to determine equality. See NSPointerFunctions.Options for more information on personality options and their corresponding equality tests.