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

# CFDictionaryEqualCallBack

Prototype of a callback function used to determine if two values or keys in a dictionary are equal.

```
typealias CFDictionaryEqualCallBack = (UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean
```

## Parameters

`value1`

A value in the dictionary.

`value2`

Another value in the dictionary.

## Discussion

This callback is passed to [`CFDictionaryCreate(_:_:_:_:_:_:)`](/documentation/CoreFoundation/CFDictionaryCreate(_:_:_:_:_:_:)) in a [`CFDictionaryKeyCallBacks`](/documentation/CoreFoundation/CFDictionaryKeyCallBacks) and [`CFDictionaryValueCallBacks`](/documentation/CoreFoundation/CFDictionaryValueCallBacks) structure.

---

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)