---
title: DispatchData.Deallocator
framework: dispatch
role: symbol
role_heading: Enumeration
path: dispatch/dispatchdata/deallocator
---

# DispatchData.Deallocator

Memory deallocators for dispatch data objects.

## Declaration

```swift
enum Deallocator
```

## Topics

### Deallocators

- [DispatchData.Deallocator.free](dispatch/dispatchdata/deallocator/free.md)
- [DispatchData.Deallocator.unmap](dispatch/dispatchdata/deallocator/unmap.md)
- [DispatchData.Deallocator.custom(_:_:)](dispatch/dispatchdata/deallocator/custom(_:_:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating a Dispatch Data Structure

- [init(bytes:)](dispatch/dispatchdata/init(bytes:)-9lrd.md)
- [init(bytesNoCopy:deallocator:)](dispatch/dispatchdata/init(bytesnocopy:deallocator:)-vfoe.md)
- [withUnsafeBytes(body:)](dispatch/dispatchdata/withunsafebytes(body:).md)
- [empty](dispatch/dispatchdata/empty.md)
