...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Override std::streambuf behaviour.
int_type overflow( int_type c);
Behaves according to the specification of std::streambuf::overflow()
,
with the specialisation that std::length_error
is thrown if
appending the character to the input sequence would require the condition
size() > max_size()
to be true.