<streambuf>
The <streambuf>
header declares the basic_streambuf class template and its two
specializations: streambuf and
wstreambuf. A stream buffer object
manages low-level access to a sequence of characters. The characters
might be stored in an external file or reside entirely in memory. See
the <fstream>, <sstream>, and <strstream> headers for examples of
different kinds of stream buffers that are derived from basic_streambuf.
Most programs do not use stream buffers directly, but use stream classes instead because they provide a higher-level interface. Each stream object has an associated stream buffer object.
See Chapter 9 for general information on input and output using the stream classes.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access