[#bsl-basic_stringstream-2constructor-04f]
= xref:bsl.adoc[bsl]::xref:bsl/basic_stringstream.adoc[basic&lowbar;stringstream]::basic&lowbar;stringstream
:relfileprefix: ../../
:mrdocs:

Create a `basic&lowbar;stringstream` object&period; Use the specified `initialString` (of a type convertible to `basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;` but not to `const CHAR&lowbar;TYPE &ast;`) indicating the initial sequence of characters that this stream will access or manipulate&period; `rdbuf` is created using `ios&lowbar;base&colon;&colon;in &verbar; ios&lowbar;base&colon;&colon;out`&period; Optionally specify the `allocator` used to supply memory&period; If `allocator` is not supplied, a default&hyphen;constructed object of the (template parameter) `ALLOCATOR` type is used&period; If the `ALLOCATOR` argument is of type `bsl&colon;&colon;allocator` (the default), then `allocator`, if supplied, shall be convertible to `bslma&colon;&colon;Allocator &ast;`&period; If the `ALLOCATOR` argument is of type `bsl&colon;&colon;allocator` and `allocator` is not supplied, the currently installed default allocator will be used to supply memory&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;VIEW&lowbar;LIKE&lowbar;TYPE&gt;
explicit
basic&lowbar;stringstream(STRING&lowbar;VIEW&lowbar;LIKE&lowbar;TYPE const& initialString);
----


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