---
title: getCapacity
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osdictionary/getcapacity
---

# getCapacity

Returns count of currently allocated capacity for members in dictionary.

## Declaration

```occ
virtual uint32_t getCapacity() const;
```

## Return Value

Return Value Capacity for members in dictionary.

## See Also

### Inspecting a Dictionary

- [ensureCapacity](driverkit/osdictionary/ensurecapacity.md)
- [getCount](driverkit/osdictionary/getcount.md)
- [OSDictionaryGetCount](driverkit/osdictionarygetcount.md)
