CFSetSetValue(_:_:)
Sets a value in a CFMutableSet object.
Declaration
func CFSetSetValue(_ theSet: CFMutableSet!, _ value: UnsafeRawPointer!)Parameters
- theSet:
The set to modify.
- value:
The value to be set in
theSet. If this value already exists intheSet, it is replaced. You may pass the value itself instead of a pointer to it if the value is pointer-size or less. IftheSetis 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.