Contents

NSHashInsertIfAbsent(_:_:)

Adds an element to the specified hash table only if the table does not already contain the element.

Declaration

func NSHashInsertIfAbsent(_ table: NSHashTable<AnyObject>, _ pointer: UnsafeRawPointer?) -> UnsafeMutableRawPointer?

Return Value

If pointer matches an item already in table, returns the preexisting pointer; otherwise, pointer is added to the table and returns NULL.

Discussion

You must not specify NULL for pointer.

See Also

Related Documentation

Functions