Template:cpp/container/capacity

Returns the number of elements that the container has currently allocated space for.

Parameters
(none)

Return value
Capacity of the currently allocated storage.

Complexity
Constant.