---
title: "CMSimpleQueueGetCapacity(_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmsimplequeuegetcapacity(_:)"
---

# CMSimpleQueueGetCapacity(_:)

Returns the number of elements that the queue can hold.

## Declaration

```swift
func CMSimpleQueueGetCapacity(_ queue: CMSimpleQueue) -> Int32
```

## Parameters

- `queue`: The queue the function is interrogating. Must not be NULL.

## Return Value

Return Value The number of elements that the queue can hold. Returns 0 if there is an error.

## See Also

### Inspecting Queues

- [CMSimpleQueueGetHead(_:)](coremedia/cmsimplequeuegethead(_:).md)
- [CMSimpleQueueGetCount(_:)](coremedia/cmsimplequeuegetcount(_:).md)
