CFDictionaryApplierFunction
Prototype of a callback function that may be applied to every key-value pair in a dictionary.
Declaration
typealias CFDictionaryApplierFunction = (UnsafeRawPointer?, UnsafeRawPointer?, UnsafeMutableRawPointer?) -> VoidParameters
- key:
The key associated with the current key-value pair.
- value:
The value associated with the current key-value pair.
- context:
The program-defined context parameter given to the apply function.
Discussion
This callback is passed to the CFDictionaryApplyFunction(_:_:_:) function which iterates over the key-value pairs in a dictionary and applies the behavior defined in the applier function to each key-value pair in a dictionary.