---
title: copyDescription
framework: corefoundation
role: symbol
role_heading: Instance Property
path: corefoundation/cfbinaryheapcallbacks/copydescription
---

# copyDescription

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

## Declaration

```swift
var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
```

## Parameters

- `ptr`: The value to be described.

## Discussion

Discussion The callback used to create a descriptive string representation of each value in the binary heap. This is used by the CFCopyDescription(_:) function. If this field is NULL, the binary heap constructs a CFString object describing the value based on its pointer value.

## See Also

### Callbacks

- [CFBinaryHeapApplierFunction](corefoundation/cfbinaryheapapplierfunction.md)
- [compare](corefoundation/cfbinaryheapcallbacks/compare.md)
- [release](corefoundation/cfbinaryheapcallbacks/release.md)
- [retain](corefoundation/cfbinaryheapcallbacks/retain.md)
- [version](corefoundation/cfbinaryheapcallbacks/version.md)
