Function

CFSetContainsValue

Returns a Boolean that indicates whether a set contains a given value.

Declaration

Boolean CFSetContainsValue(CFSetRef theSet, const void *value);

Parameters

theSet

The set to search.

value

The value to match in theSet. Comparisons are made using the equal callback provided when theSet was created. If the equal callback was NULL, pointer equality (in C, ==) is used.

Return Value

true if value is contained in theSet, otherwise false.

Discussion

This function uses the equal callback. value and all elements in the set must be understood by the equal callback.

See Also

Examining a Set

CFSetGetCount

Returns the number of values currently in a set.

CFSetGetCountOfValue

Returns the number of values in a set that match a given value.

CFSetGetValue

Obtains a specified value from a set.

CFSetGetValueIfPresent

Reports whether or not a value is in a set, and if it exists returns the value indirectly.

CFSetGetValues

Obtains all values in a set.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software