close
Namespaces
Variants

std::{{{1}}}::capacity

From cppreference.com

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.

Example

See also

returns the number of elements
(public member function of std::{{{1}}}) [edit]
reserves storage
(public member function of std::{{{1}}}) [edit]