<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/kCFAllocatorUseContext",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@kCFAllocatorUseContext"
  },
  "title" : "kCFAllocatorUseContext"
}
-->

# kCFAllocatorUseContext

Special allocator argument to [`CFAllocatorCreate(_:_:)`](/documentation/CoreFoundation/CFAllocatorCreate(_:_:))—it uses the functions given in the context to allocate the allocator.

```
let kCFAllocatorUseContext: CFAllocator!
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)