Contents

NSCreateMapTable(_:_:_:)

Creates a new map table in the default zone.

Declaration

func NSCreateMapTable(_ keyCallBacks: NSMapTableKeyCallBacks, _ valueCallBacks: NSMapTableValueCallBacks, _ capacity: Int) -> NSMapTable<AnyObject, AnyObject>

Discussion

Creates and returns a pointer to an NSMapTable structure in the default zone; the table’s size is dependent on (but generally not equal to) capacity. If capacity is 0, a small map table is created. The NSMapTableKeyCallBacks arguments are structures that are very similar to the callback structure used by NSCreateHashTable(_:_:)—they have the same defaults as documented for that function.

See Also

Related Documentation

Functions