class
<sstream>

std::wostringstream

typedef basic_ostringstream<wchar_t> wostringstream;
Output string stream (wide)

Output stream class to operate on strings of wide characters.

This is an instantiation of basic_ostringstream with the following template parameters:
template parameterdefinitioncomments
charTwchar_tAliased as member char_type
traitschar_traits<wchar_t>Aliased as member traits_type
Allocallocator<wchar_t>Aliased as member allocator_type

Apart from the internal string buffer of type wstringbuf, objects of this class keep a set of internal fields inherited from ios_base and wios:

fieldmember functionsdescription
Formattingformat flagsflags
setf
unsetf
A set of internal flags that affect how certain input/output operations are interpreted or generated.
See member type fmtflags.
field widthwidthWidth of the next formatted element to insert.
display precisionprecisionDecimal precision for the next floating-point value inserted.
localegetloc
imbue
The locale object used by the function for formatted input/output operations affected by localization properties.
fill characterfillCharacter to pad a formatted field up to the field width (width).
Stateerror staterdstate
setstate
clear
The current error state of the stream.
Individual values may be obtained by calling good, eof, fail and bad.
See member type iostate.
exception maskexceptionsThe state flags for which a failure exception is thrown.
See member type iostate.
Othercallback stackregister_callbackStack of pointers to functions that are called when certain events occur.
extensible arraysiword
pword
xalloc
Internal arrays to store objects of type long and void*.
tied streamtiePointer to output stream that is flushed before each i/o operation on this stream.
stream bufferrdbufPointer to the associated basic_streambuf object, which is charge of all input/output operations.

Member types

The class declares the following member types:
member typedefinition
char_typewchar_t
traits_typechar_traits<wchar_t>
allocator_typeallocator<wchar_t>
int_typewint_t
pos_typewstreampos
off_typestreamoff
And these member types inherited from ios_base and wostream:

Public member functions

Note: This section links to the references for members of its basic template (basic_ostringstream).


Public member functions inherited from wostream


Public member functions inherited from wios


Public member functions inherited from ios_base


Non-member function overloads