NSMapInsert(_:_:_:)
Inserts a key-value pair into the specified table.
Declaration
func NSMapInsert(_ table: NSMapTable<AnyObject, AnyObject>, _ key: UnsafeRawPointer?, _ value: UnsafeRawPointer?)Discussion
Inserts key and value into table. If key matches a key already in table, value is retained and the previous value is released, using the retain and release callback functions that were specified when the table was created. Raises NSInvalidArgumentException if key is equal to the notAKeyMarker field of the table’s NSMapTableKeyCallBacks structure.
See Also
Related Documentation
Functions
NSAllMapTableKeys(_:)NSAllMapTableValues(_:)NSCompareMapTables(_:_:)NSCopyMapTableWithZone(_:_:)NSCountMapTable(_:)NSCreateMapTable(_:_:_:)NSCreateMapTableWithZone(_:_:_:_:)NSEndMapTableEnumeration(_:)NSEnumerateMapTable(_:)NSFreeMapTable(_:)NSMapGet(_:_:)NSMapInsertIfAbsent(_:_:_:)NSMapInsertKnownAbsent(_:_:_:)NSMapMember(_:_:_:_:)NSMapRemove(_:_:)