...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Return the number of characters that can be stored without reallocating.
std::size_t capacity() const;
This does not include the null terminator, which is always present.
Constant.
Throws nothing.