Function

CFSetReplaceValue

Replaces a value in a CFMutableSet object.

Declaration

void CFSetReplaceValue(CFMutableSetRef theSet, const void *value);

Parameters

theSet

The set to modify.

value

The value to replace in theSet. If this value does not already exist in theSet, the function does nothing. You may pass the value itself instead of a pointer if it is pointer-size or less. The equal callback provided when theSet was created is used to compare. If the equal callback was NULL, pointer equality (in C, ==) is used. If value, or any other value in theSet, is not understood by the equal callback, the behavior is undefined.

See Also

CFMutableSet Miscellaneous Functions

CFSetAddValue

Adds a value to a CFMutableSet object.

CFSetCreateMutable

Creates an empty CFMutableSet object.

CFSetCreateMutableCopy

Creates a new mutable set with the values from another set.

CFSetRemoveAllValues

Removes all values from a CFMutableSet object.

CFSetRemoveValue

Removes a value from a CFMutableSet object.

CFSetSetValue

Sets a value in a CFMutableSet object.