Creates a new mutable or fixed-mutable binary heap with the values from a pre-existing binary heap.
- 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 object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The maximum number of values that can be contained by the binary heap. The binary heap starts with the same number of values as
heapand can grow to this number of values. If this parameter is
0, the binary heap's maximum capacity is limited only by memory. If nonzero,
capacitymust be large enough to hold all the values in
The binary heap which is to be copied. The values from the binary heap are copied as pointers into the new binary heap (that is, the values themselves are copied, not that to which the values point, if anything). However, the values are also retained by the new binary heap.
CFBinary object holding the same values as
heap. The new binary heap uses the same callbacks as
heap. Ownership follows the The Create Rule.