[#BloombergLP-bsltf-swap-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::swap
:relfileprefix: ../../
:mrdocs:

Exchange the values of the specified `lhs` and `rhs` objects&period;

== Synopsis

Declared in `&lt;bsltf&lowbar;degeneratefunctor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class FUNCTOR&gt;
void
swap(
    xref:BloombergLP/bsltf/DegenerateFunctor.adoc[DegenerateFunctor&lt;FUNCTOR, true&gt;]& lhs,
    xref:BloombergLP/bsltf/DegenerateFunctor.adoc[DegenerateFunctor&lt;FUNCTOR, true&gt;]& rhs);
----


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