[#bsl-swap-0a4] = xref:bsl.adoc[bsl]::swap :relfileprefix: ../ :mrdocs: Swap the specified `a` with the specified `b` using `a.swap(b)` expression. == Synopsis Declared in `<bslstl_syncbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CHAR, class TRAITS, class ALLOCATOR> void swap( xref:bsl/basic_syncbuf.adoc[basic_syncbuf<CHAR, TRAITS, ALLOCATOR>]& a, xref:bsl/basic_syncbuf.adoc[basic_syncbuf<CHAR, TRAITS, ALLOCATOR>]& b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#