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
NSAllHashTableObjects(_:)NSCompareHashTables(_:_:)NSCopyHashTableWithZone(_:_:)NSCountHashTable(_:)NSCreateHashTable(_:_:)NSCreateHashTableWithZone(_:_:_:)NSEndHashTableEnumeration(_:)NSEnumerateHashTable(_:)NSFreeHashTable(_:)NSHashGet(_:_:)NSHashInsert(_:_:)NSHashInsertKnownAbsent(_:_:)NSHashRemove(_:_:)NSNextHashEnumeratorItem(_:)NSResetHashTable(_:)