CFBinaryHeapRetainCallBack

Callback function used to retain a value being added to a binary heap.

Declaration

typedef const void *(*CFBinaryHeapRetainCallBack) (
   CFAllocatorRef allocator,
   const void *ptr
);

Parameters

allocator

The binary heap’s allocator.

ptr

The value to retain.

Return Value

The value to store in the binary heap, which is usually the ptr parameter passed to this callback, but may be a different value if a different value should be stored in the binary heap.

See Also

Callbacks

CFBinaryHeapApplierFunction

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

CFBinaryHeapCompareCallBack

Callback function used to compare two members of a binary heap.

CFBinaryHeapCopyDescriptionCallBack

Callback function used to get a description of a value in a binary heap.

CFBinaryHeapReleaseCallBack

Callback function used to release a value before it is removed from a binary heap.