Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at <streambuf>.

Include the iostreams standard header <streambuf> to define the template class basic_streambuf, which is basic to the operation of the iostreams classes. This header is typically included for you by another of the iostreams headers; you rarely need to include it directly.

#include <streambuf>  


streambufA specialization of basic_streambuf that uses char as the template parameters.
wstreambufA specialization of basic_streambuf that uses wchar_t as the template parameters.


basic_streambuf ClassThe template class describes an abstract base class for deriving a stream buffer, which controls the transmission of elements to and from a specific representation of a stream.

Header Files Reference
Thread Safety in the C++ Standard Library
iostream Programming
iostreams Conventions

© 2017 Microsoft