<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.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.