CFSetGetValue(_:_:)
Obtains a specified value from a set.
Declaration
func CFSetGetValue(_ theSet: CFSet!, _ value: UnsafeRawPointer!) -> UnsafeRawPointer!Parameters
- theSet:
The set to examine.
- value:
The value for which to search in
theSet. Comparisons are made using the equal callback provided whentheSetwas created. If the equal callback wasNULL, pointer equality (in C, ==) is used.
Return Value
A pointer to the requested value, or NULL if the value is not in theSet. If the value is a Core Foundation object, Ownership follows the The Get Rule.
Discussion
Since this function uses the equal callback, value all elements in the set must be understood by the equal callback. Depending on the implementation of the equal callback specified when creating theSet, the value returned may not have the same pointer equality as value.