User-Defined Output Stream Buffers

1 · Yang Yang · June 10, 2020, midnight
You are probably already familiar with using iostream to perform I/O operations in C++. However, are you familiar with the backbone of the stream, which is the stream buffers. streambuf class is definitely a sophisticated class in the C++ standard library, if not the most sophisticated one. As it said, the complexity of the interfaces reflects tradition, the need for I/O performance, and the variety of human expectations.[2] Nevertheless, a solid understanding of the stream buffer’s operations i...