...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Get the current capacity of the dynamic buffer.
std::size_t capacity() const;
The current total capacity of the buffer, i.e. for both the input sequence and output sequence.