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

Create a `basic&lowbar;ostringstream` from the specified initial string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
basic&lowbar;ostringstream(
    xref:bsl/basic_ostringstream.adoc[StringType] const& initialString,
    xref:bsl/basic_ostringstream/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

== Description

Same as the constructor taking `const allocator&lowbar;type&amp;`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *initialString*
| initial character sequence for output
| *allocator*
| allocator used to supply memory
|===


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