...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 basic_streambuf
.
std::size_t capacity() const;
The current total capacity of the streambuf, i.e. for both the input sequence and output sequence.