Contents

CFBinaryHeapGetMinimumIfPresent(_:_:)

Returns the minimum value in a binary heap, if present.

Declaration

func CFBinaryHeapGetMinimumIfPresent(_ heap: CFBinaryHeap!, _ value: UnsafeMutablePointer<UnsafeRawPointer?>!) -> Bool

Parameters

  • heap:

    The binary heap to use.

  • value:

    On return, the minimum value in heap as determined by the binary heap’s compare callback. If heap contains several equal minimum values, any one may be returned. If the value is a Core Foundation object, ownership follows the 20001148 SW1.

Return Value

true if a minimum value exists in heap, false otherwise. false is returned only if heap is empty.

See Also

CFBinaryHeap Miscellaneous Functions