---
title: "CFBinaryHeapGetMinimumIfPresent(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbinaryheapgetminimumifpresent(_:_:)"
---

# CFBinaryHeapGetMinimumIfPresent(_:_:)

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

## Declaration

```swift
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 https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-SW1.

## Return Value

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

- [CFBinaryHeapAddValue(_:_:)](corefoundation/cfbinaryheapaddvalue(_:_:).md)
- [CFBinaryHeapApplyFunction(_:_:_:)](corefoundation/cfbinaryheapapplyfunction(_:_:_:).md)
- [CFBinaryHeapContainsValue(_:_:)](corefoundation/cfbinaryheapcontainsvalue(_:_:).md)
- [CFBinaryHeapCreate(_:_:_:_:)](corefoundation/cfbinaryheapcreate(_:_:_:_:).md)
- [CFBinaryHeapCreateCopy(_:_:_:)](corefoundation/cfbinaryheapcreatecopy(_:_:_:).md)
- [CFBinaryHeapGetCount(_:)](corefoundation/cfbinaryheapgetcount(_:).md)
- [CFBinaryHeapGetCountOfValue(_:_:)](corefoundation/cfbinaryheapgetcountofvalue(_:_:).md)
- [CFBinaryHeapGetMinimum(_:)](corefoundation/cfbinaryheapgetminimum(_:).md)
- [CFBinaryHeapGetTypeID()](corefoundation/cfbinaryheapgettypeid().md)
- [CFBinaryHeapGetValues(_:_:)](corefoundation/cfbinaryheapgetvalues(_:_:).md)
- [CFBinaryHeapRemoveAllValues(_:)](corefoundation/cfbinaryheapremoveallvalues(_:).md)
- [CFBinaryHeapRemoveMinimumValue(_:)](corefoundation/cfbinaryheapremoveminimumvalue(_:).md)
