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

# CFArrayApplierFunction

Prototype of a callback function that may be applied to every value in an array.

```
typealias CFArrayApplierFunction = (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
```

## Parameters

`value`

The current value in an array.

`context`

The program-defined context parameter given to the applier   function.

## Discussion

This callback is passed to the [`CFArrayApplyFunction(_:_:_:_:)`](/documentation/CoreFoundation/CFArrayApplyFunction(_:_:_:_:)) function, which iterates over the values in an array and applies the behavior defined in the applier function to each value in an array.

---

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)