Stream Buffer
The heart of a stream
- Inherit from std::basic_streambuf
- Inplement a buffer
- Override virtual functions
- Flush to another output stream
The heart of a stream is its buffer.
Inherit from std::basic_streambuf to create a stream buffer and override the virtual functions.