---
title: kCFAllocatorUseContext
framework: corefoundation
role: symbol
role_heading: Global Variable
path: corefoundation/kcfallocatorusecontext
---

# kCFAllocatorUseContext

Special allocator argument to CFAllocatorCreate(_:_:)—it uses the functions given in the context to allocate the allocator.

## Declaration

```swift
let kCFAllocatorUseContext: CFAllocator!
```

## See Also

### Constants

- [kCFAllocatorDefault](corefoundation/kcfallocatordefault.md)
- [kCFAllocatorSystemDefault](corefoundation/kcfallocatorsystemdefault.md)
- [kCFAllocatorMalloc](corefoundation/kcfallocatormalloc.md)
- [kCFAllocatorMallocZone](corefoundation/kcfallocatormalloczone.md)
- [kCFAllocatorNull](corefoundation/kcfallocatornull.md)
