Creates an immutable set containing the values of an existing set.
- 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 set and its storage for values. Pass
kto use the current default allocator.
The set to copy.
A new set that contains the same values as
NULL if there was a problem creating the object. Ownership follows the The Create Rule.
The pointer values from
the are copied into the new set, and the values are 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