Replaces a value in a mutable bag.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The bag from which
valueis to be replaced.
The value to be replaced in the collection. If this value does not already exist in the collection, the function does nothing. You may pass the value itself instead of a pointer if it is pointer-size or less. The equal callback provided when
thewas created is used to compare. If the equal callback was
NULL, pointer equality (in C, ==) is used. If
value, or any other value in
the, is not understood by the equal callback, the behavior is undefined.
Depending on the implementation of the equal callback specified when creating
the, the object that is replaced by
value may not have the same pointer equality.