Returns a Boolean value that indicates whether a given value is in a dictionary.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
Boolean CFDictionaryContainsValue(CFDictionary Ref theDict, const void *value);
Parameters
theDict
The dictionary to examine.
value
The value for which to find matches in
the
. The value equal callback provided when the dictionary was created is used to compare. If the equal callback wasDict NULL
, pointer equality (in C, ==) is used. Ifvalue
, or any other value in the dictionary, is not understood by the equal callback, the behavior is undefined.
Return Value
true
if value
is in the dictionary, otherwise false
.