Inserts a value into an array at a given index.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The array into which
valueis inserted. If
theis a fixed-capacity array and it is full before this operation, the behavior is undefined.
The index at which to insert
value. The index must be in the range
Nis the count of
thebefore the operation. If the index is the same as the count of
the, this function has the same effect as
The value to insert into
the. The value is retained by
theusing the retain callback provided when
thewas created. If
valueis not of the type expected by the retain callback, the behavior is undefined.
value parameter is assigned to the index
idx, and all values in
the with equal and larger indices have their indices increased by one.