Creates a new mutable bag with the values from another bag.
- 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 bag and its storage for values. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The maximum number of values that can be contained by the new bag. The bag starts with the same count as
the, and can grow to this number of values (and it can have less). If this value is
0, the bag’s maximum capacity is not limited. This value must be greater than or equal to the count of
the, and must not be negative.
The bag to copy. The pointer values from
theare copied into the new bag. However, the values are also retained by the new bag. The count of the new bag is the same as the count of
the. The new bag uses the same callbacks as
A new mutable bag that contains the same values as
the. Ownership follows the The Create Rule.