[#bsl-basic_stringstream-str-07a] = xref:bsl.adoc[bsl]::xref:bsl/basic_stringstream.adoc[basic_stringstream]::str :relfileprefix: ../../ :mrdocs: `str` overloads == Synopses Declared in `<bslstl_stringstream.h>` Return the internally buffered sequence of characters maintained by this stream, leaving the stream empty. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_stringstream.adoc[StringType] xref:bsl/basic_stringstream/str-05.adoc[str]() &&; ---- [.small]#xref:bsl/basic_stringstream/str-05.adoc[_» more..._]# Return the internally buffered sequence of characters maintained by this stream object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_stringstream.adoc[StringType] xref:bsl/basic_stringstream/str-00.adoc[str]() const &; ---- [.small]#xref:bsl/basic_stringstream/str-00.adoc[_» more..._]# Reset this stream's buffered character sequence to `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/basic_stringstream/str-02.adoc[str](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<StringType>] value); ---- [.small]#xref:bsl/basic_stringstream/str-02.adoc[_» more..._]# Reset this stream's buffered character sequence to `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/basic_stringstream/str-06.adoc[str](xref:bsl/basic_stringstream.adoc[StringType] const& value); ---- [.small]#xref:bsl/basic_stringstream/str-06.adoc[_» more..._]# Return a copy of the stream buffer using the specified allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class SALLOC> xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS, SALLOC>] xref:bsl/basic_stringstream/str-09.adoc[str](SALLOC const& allocator) const requires bsl::IsStdAllocator<SALLOC>::value; ---- [.small]#xref:bsl/basic_stringstream/str-09.adoc[_» more..._]# Reset this stream's buffered character sequence to `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_VIEW_LIKE_TYPE> void xref:bsl/basic_stringstream/str-07d.adoc[str](STRING_VIEW_LIKE_TYPE const& value); ---- [.small]#xref:bsl/basic_stringstream/str-07d.adoc[_» more..._]# Reset this stream's buffered character sequence to `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class SALLOC> void xref:bsl/basic_stringstream/str-0a.adoc[str](xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS, SALLOC>] const& value) requires !bsl::is_same<ALLOCATOR, SALLOC>::value; ---- [.small]#xref:bsl/basic_stringstream/str-0a.adoc[_» more..._]# == Return Value * buffered character sequence, leaving this stream empty * copy of the buffered character sequence == Parameters [cols="1,4"] |=== | Name| Description | *value* | new character sequence for the stream buffer | *allocator* | allocator for the returned string |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#