Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 7789ef3d8d.
PrevUpHomeNext
array::capacity

Return the number of elements that can be held in currently allocated memory.

Synopsis
std::size_t
capacity() const;
Description

This number may be larger than the value returned by size().

Complexity

Constant.

Exception Safety

No-throw guarantee.


PrevUpHomeNext