[#bsl-basic_stringstream-str-0a]
= xref:bsl.adoc[bsl]::xref:bsl/basic_stringstream.adoc[basic&lowbar;stringstream]::str
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class SALLOC&gt;
void
str(xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, SALLOC&gt;] const& value)
requires !bsl&colon;&colon;is&lowbar;same&lt;ALLOCATOR, SALLOC&gt;&colon;&colon;value;
----

== Description

Same as the `str` overload taking `const StringType&amp;`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| string whose contents become the stream buffer
|===


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