[#bsl-basic_ostringstream-2constructor-0a]
= xref:bsl.adoc[bsl]::xref:bsl/basic_ostringstream.adoc[basic&lowbar;ostringstream]::basic&lowbar;ostringstream
:relfileprefix: ../../
:mrdocs:

Create a `basic&lowbar;ostringstream` object&period; Use the specified `initialString` indicating the value that will be returned by a call to `str` prior to any streaming operations performed on this object&period; Optionally specify a `modeBitMask` indicating whether the underlying stream&hyphen;buffer may also be read from (`rdbuf` is created using `modeBitMask &verbar; ios&lowbar;base&colon;&colon;out`)&period; If `modeBitMask` is not supplied, `rdbuf` will be created using `ios&lowbar;base&colon;&colon;out`&period; Optionally specify the `allocator` used to supply memory&period; If `allocator` is not supplied, the allocator in `initialString` is used&period; `initialString` is left in a valid but unspecified state&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;ostringstream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
basic&lowbar;ostringstream(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;StringType&gt;] initialString);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
