[#BloombergLP-bslalg-SwapUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::SwapUtil :relfileprefix: ../../ :mrdocs: This class provides a namespace for the `swap` utility method. == Synopsis Declared in `<bslalg_swaputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class SwapUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslalg/SwapUtil/swap.adoc[`swap`] | Exchange the values of the specified `a` and `b` objects using either a `swap` free function overloaded for type `T`, in the namespace of type `T` if it's available, and the default generic `bsl::swap` otherwise. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#