class
<sstream>

std::stringbuf

typedef basic_stringbuf<char> stringbuf;
String stream buffer

Stream buffer to read from and write to string objects.

Objects of this class maintain internally a sequence of characters that they use as their associated input sequence and/or associated output sequence. The internal sequence can be initialized from a string object, or copied to one, using member str.

Access to the internal sequence of characters is given to streams by means of the interface offered by the virtual members inherited from streambuf that are overriden in this class:

Member types

The class declares the following member types:
member typedefinition
char_typechar
traits_typechar_traits<char>
allocator_typeallocator<char>
int_typeint
pos_typestreampos
off_typestreamoff

Public member functions


Public member functions inherited from streambuf

Locales:
Buffer management and positioning:
Input functions (get):
Output functions (put):

Protected virtual function overrides


The class also inherits other protected members that are non-virtual or not overridden. See base class streambuf for more details.