Contents

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