[#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&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;swaputil&period;h&gt;`

[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&apos;s available, and the default generic `bsl&colon;&colon;swap` otherwise&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
