Reports whether or not a value is in a bag, and returns that value indirectly if it exists.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The bag to be searched.
The value for which to find matches in
the. The equal callback provided when
thewas created is used to compare. If the equal callback was
NULL, pointer equality (in C, ==) is used. If
candidate, or any other value in
the, is not understood by the equal callback, the behavior is undefined.
A pointer to a value object. Set to the matching value if it exists in the bag, otherwise
NULL. If the value is a Core Foundation object, ownership follows the The Get Rule.
value is present in
Depending on the implementation of the equal callback specified when creating
the, the value returned in
value may not have the same pointer equality as