Creates a new mutable dictionary with the key-value pairs from another dictionary.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new dictionary and its storage for key-value pairs. Pass
kto use the current default allocator.
The maximum number of key-value pairs that can be contained by the new dictionary. The dictionary starts with the same number of key-value pairs as
theand can grow to this number of values (and it can have less).
0to specify that the maximum capacity is not limited. If non-
capacitymust be greater than or equal to the count of
The dictionary to copy. The keys and values from the dictionary are copied as pointers into the new dictionary, not that which the values point to (if anything). The keys and values are also retained by the new dictionary. The count of the new dictionary is the same as the count of
the. The new dictionary uses the same callbacks as
A new dictionary that contains the same values as
the. Ownership follows the The Create Rule.