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

PrevUpHomeNext
object::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