Sets 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 in which
valueis to be set.
The value to be set in the collection. If this value already exists in
the, it is replaced. You may pass the value itself instead of a pointer to it if the value is pointer-size or less. If
theis fixed-size and the value is beyond its capacity, the behavior is undefined.
Depending on the implementation of the equal callback specified when creating
the, the value that is replaced by
value may not have the same pointer equality.