[#bsl-basic_ostringstream-str-009]
= xref:bsl.adoc[bsl]::xref:bsl/basic_ostringstream.adoc[basic&lowbar;ostringstream]::str
:relfileprefix: ../../
:mrdocs:

Reset this stream&apos;s buffered character sequence to `value`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;VIEW&lowbar;LIKE&lowbar;TYPE&gt;
void
str(STRING&lowbar;VIEW&lowbar;LIKE&lowbar;TYPE const& value);
----

== Description

Reset the internally buffered sequence of characters maintained by this stream object to the specified `value` (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;`)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| new character sequence for the stream buffer
|===


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