[#bsl-basic_ostringstream-swap-04] = xref:bsl.adoc[bsl]::xref:bsl/basic_ostringstream.adoc[basic_ostringstream]::swap :relfileprefix: ../../ :mrdocs: `swap` overloads == Synopses Declared in `<bslstl_ostringstream.h>` Exchange this stream with another `basic_ostream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/basic_ostringstream/swap-01.adoc[swap](xref:bsl/basic_ostringstream.adoc[BaseStream]& other); ---- [.small]#xref:bsl/basic_ostringstream/swap-01.adoc[_» more..._]# Efficiently exchange the value of this object with `other`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/basic_ostringstream/swap-0b.adoc[swap](xref:bsl/basic_ostringstream.adoc[basic_ostringstream]& other); ---- [.small]#xref:bsl/basic_ostringstream/swap-0b.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | stream with which to exchange values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#