---
title: "CMSimpleQueueGetCount(_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmsimplequeuegetcount(_:)"
---

# CMSimpleQueueGetCount(_:)

Returns the number of elements currently in the queue.

## Declaration

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

## Parameters

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

## Return Value

Return Value The number of elements currently in the queue. Returns 0 if there is an error.

## See Also

### Inspecting Queues

- [CMSimpleQueueGetHead(_:)](coremedia/cmsimplequeuegethead(_:).md)
- [CMSimpleQueueGetCapacity(_:)](coremedia/cmsimplequeuegetcapacity(_:).md)
