---
title: descriptionFunction
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nspointerfunctions/descriptionfunction
---

# descriptionFunction

The function used to describe elements.

## Declaration

```swift
var descriptionFunction: ((UnsafeRawPointer) -> String?)? { get set }
```

## Discussion

Discussion This function is used by description methods for hash and map tables.

## See Also

### Personality Functions

- [hashFunction](foundation/nspointerfunctions/hashfunction.md)
- [isEqualFunction](foundation/nspointerfunctions/isequalfunction.md)
- [sizeFunction](foundation/nspointerfunctions/sizefunction.md)
