class
<sstream>

std::wstringbuf

typedef basic_stringbuf<wchar_t> wstringbuf;
String stream buffer (wide)

Stream buffer to read from and write to wstring objects.

Objects of this class maintain internally a sequence of wide characters that they use as their associated input sequence and/or associated output sequence. The internal sequence can be initialized from a wstring 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 wstreambuf that are overriden in this class:

Member types

member typedefinition
char_typewchar_t
traits_typechar_traits<wchar_t>
allocator_typeallocator<wchar_t>
int_typewint_t
pos_typewstreampos
off_typestreamoff

Public member functions

Note: The references to the members of its basic template (basic_stringbuf) are linked here.

Public member functions inherited from wstreambuf

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

Protected virtual function overrides

Note: The references to the members of its basic template (basic_stringbuf) are linked here.

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