[#bsl-slist-swap] = xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::swap :relfileprefix: ../../ :mrdocs: Exchange the contents of this list with those of the specified list. == Synopsis Declared in `<bslstp_slist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:bsl/slist.adoc[_Self]& __x); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#