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 5002c2d6a2.
PrevUpHomeNext
string::capacity

Return the number of characters that can be held without a reallocation.

Synopsis
std::size_t
capacity() const;
Description

This number represents the largest number of characters the currently allocated storage can contain. This number may be larger than the value returned by size().

Complexity

Constant.


PrevUpHomeNext