Contents

contains(_:)

Returns a Boolean value that indicates whether the hash table contains a given object.

Declaration

func contains(_ anObject: ObjectType?) -> Bool

Parameters

  • anObject:

    The object to test for membership in the hash table.

Return Value

true if the hash table contains anObject, otherwise false.

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.

See Also

Accessing Content