[#bsl-basic_ostringstream-str-02] = xref:bsl.adoc[bsl]::xref:bsl/basic_ostringstream.adoc[basic_ostringstream]::str :relfileprefix: ../../ :mrdocs: Return a copy of the internally buffered sequence of characters maintained by this stream object in a `basic_string` that uses the specified `allocator`. == Synopsis Declared in `<bslstl_ostringstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class SALLOC> xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS, SALLOC>] str(SALLOC const& allocator) const requires bsl::IsStdAllocator<SALLOC>::value; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#