[#bsl-basic_istringstream-str-08] = xref:bsl.adoc[bsl]::xref:bsl/basic_istringstream.adoc[basic_istringstream]::str :relfileprefix: ../../ :mrdocs: `str` overloads == Synopses Declared in `<bslstl_istringstream.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_istringstream.adoc[basic_istringstream<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::StringType] xref:bsl/basic_istringstream/str-04e.adoc[str]() &&; ---- [.small]#xref:bsl/basic_istringstream/str-04e.adoc[_» more..._]# Return the internally buffered sequence of characters maintained by this stream object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_istringstream.adoc[basic_istringstream<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::StringType] xref:bsl/basic_istringstream/str-00.adoc[str]() const &; ---- [.small]#xref:bsl/basic_istringstream/str-00.adoc[_» more..._]# Same as the `str` overload taking `const StringType&`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/basic_istringstream/str-04f.adoc[str](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<StringType>] value); ---- [.small]#xref:bsl/basic_istringstream/str-04f.adoc[_» more..._]# Reset the internally buffered sequence of characters provided as input by this stream to the specified `value`. If `value` is passed by `MovableRef`, it is left in a valid but unspecified state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/basic_istringstream/str-09.adoc[str](xref:bsl/basic_istringstream.adoc[StringType] const& value); ---- [.small]#xref:bsl/basic_istringstream/str-09.adoc[_» more..._]# Return a copy of the internally buffered sequence of characters maintained by this stream object in a `basic_string` that uses 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_istringstream/str-03.adoc[str](SALLOC const& allocator) const requires bsl::IsStdAllocator<SALLOC>::value; ---- [.small]#xref:bsl/basic_istringstream/str-03.adoc[_» more..._]# Reset the internally buffered sequence of characters provided as input by this stream to the specified `value` (of a type convertible to `basic_string_view<CHAR_TYPE, CHAR_TRAITS>` but not to `const CHAR_TYPE *`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_VIEW_LIKE_TYPE> void xref:bsl/basic_istringstream/str-02.adoc[str](STRING_VIEW_LIKE_TYPE const& value); ---- [.small]#xref:bsl/basic_istringstream/str-02.adoc[_» more..._]# Same as the `str` overload taking `const StringType&`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class SALLOC> void xref:bsl/basic_istringstream/str-0e.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_istringstream/str-0e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#