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

# CFBinaryHeapApplierFunction

Callback function used to apply a function to all members of a binary heap.

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

## Parameters

`val`

The current value from the binary heap.

`context`

The program-defined context parameter given to the [`CFBinaryHeapApplyFunction(_:_:_:)`](/documentation/CoreFoundation/CFBinaryHeapApplyFunction(_:_:_:)) function.

## Discussion

---

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)