CFBinaryHeapCompareCallBack

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

Declaration

typedef CFComparisonResult (*CFBinaryHeapCompareCallBack) (
   const void *ptr1,
   const void *ptr2,
   void *info
);

Parameters

ptr1

First value to compare.

ptr2

Second value to compare.

info

Not used. Should always be NULL.

Return Value

kCFCompareLessThan if ptr1 is less than ptr2, kCFCompareEqualTo if ptr1 and ptr2 are equal, or kCFCompareGreaterThan if ptr1 is greater than ptr2.

See Also

Callbacks

CFBinaryHeapApplierFunction

Callback function used to apply a function to all 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.

CFBinaryHeapRetainCallBack

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