Creates a new mutable set with the values from another set.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new set and its storage for values. Pass
kto use the current default allocator.
The maximum number of values that can be contained by the new set. The set starts with the same number of values 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 set to copy. The pointer values from
theare copied into the new set. The values are also retained by the new set. The count of the new set is the same as the count of
the. The new set uses the same callbacks as
A new mutable set that contains the same values as
the. Ownership follows the The Create Rule.