---
title: CFSetReleaseCallBack
framework: corefoundation
role: symbol
role_heading: Type Alias
path: corefoundation/cfsetreleasecallback
---

# CFSetReleaseCallBack

Prototype of a callback function used to release a value before it’s removed from a set.

## Declaration

```swift
typealias CFSetReleaseCallBack = (CFAllocator?, UnsafeRawPointer?) -> Void
```

## Parameters

- `allocator`: The set’s allocator.
- `value`: The value being removed from the set.

## Discussion

Discussion This callback is passed to CFSetCreate(_:_:_:_:) in a CFSetCallBacks structure.

## See Also

### Callbacks

- [CFSetApplierFunction](corefoundation/cfsetapplierfunction.md)
- [CFSetCopyDescriptionCallBack](corefoundation/cfsetcopydescriptioncallback.md)
- [CFSetEqualCallBack](corefoundation/cfsetequalcallback.md)
- [CFSetHashCallBack](corefoundation/cfsethashcallback.md)
- [CFSetRetainCallBack](corefoundation/cfsetretaincallback.md)
