Return the number of characters that can be stored without reallocating
Synopsis
std::size_t
capacity() const noexcept;
Description
This does not include the null terminator, which is always present.
Complexity
Constant.
Exception Safety
Throws nothing.
Return Value
*this