[#bsl-basic_ostringstream-2constructor-0a] = xref:bsl.adoc[bsl]::xref:bsl/basic_ostringstream.adoc[basic_ostringstream]::basic_ostringstream :relfileprefix: ../../ :mrdocs: Create a `basic_ostringstream` object. 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. Optionally specify a `modeBitMask` indicating whether the underlying stream‐buffer may also be read from (`rdbuf` is created using `modeBitMask | ios_base::out`). If `modeBitMask` is not supplied, `rdbuf` will be created using `ios_base::out`. Optionally specify the `allocator` used to supply memory. If `allocator` is not supplied, the allocator in `initialString` is used. `initialString` is left in a valid but unspecified state. == Synopsis Declared in `<bslstl_ostringstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit basic_ostringstream(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<StringType>] initialString); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#