---
title: "CMMemoryPoolGetAllocator(_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmmemorypoolgetallocator(_:)"
---

# CMMemoryPoolGetAllocator(_:)

Returns the allocator for the memory pool.

## Declaration

```swift
func CMMemoryPoolGetAllocator(_ pool: CMMemoryPool) -> CFAllocator
```

## Parameters

- `pool`: The memory pool from which to retrieve its allocator.

## Return Value

Return Value The memory pool’s allocator.

## See Also

### Managing a Memory Pool

- [CMMemoryPoolFlush(_:)](coremedia/cmmemorypoolflush(_:).md)
- [CMMemoryPoolInvalidate(_:)](coremedia/cmmemorypoolinvalidate(_:).md)
