[#bsl-swap-0b1] = xref:bsl.adoc[bsl]::swap :relfileprefix: ../ :mrdocs: Efficiently exchange the values of the specified `a` and `b` objects. This method provides the no‐throw exception‐safety guarantee if `a` and `b` allocators compare equal. Note that this function is only available for C++11 (and later) language standards. == Synopsis Declared in `<bslstl_stringstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CHAR_TYPE, class CHAR_TRAITS, class ALLOCATOR> void swap( xref:bsl/basic_stringstream.adoc[basic_stringstream<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>]& a, xref:bsl/basic_stringstream.adoc[basic_stringstream<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>]& b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#