Function

CFSetSetValue

Sets a value in a CFMutableSet object.

Declaration

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

Parameters

theSet

The set to modify.

value

The value to be set in theSet. If this value already exists in theSet, it is replaced. You may pass the value itself instead of a pointer to it if the value is pointer-size or less. If theSet is fixed-size and setting the value would increase its size beyond its capacity, the behavior is undefined.

Discussion

Depending on the implementation of the equal callback specified when creating theSet, the value that is replaced by value may not have the same pointer equality.

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.

CFSetReplaceValue

Replaces a value in a CFMutableSet object.