[#BloombergLP-bslstl-Function_Rep-swap]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Function_Rep.adoc[Function&lowbar;Rep]::swap
:relfileprefix: ../../../
:mrdocs:

Exchange this object&apos;s target object, manager function, and invoker with those of the specified `other` object&period; The behavior is undefined unless `this&hyphen;&gt;get&lowbar;allocator() &equals;&equals; other&hyphen;&gt;get&lowbar;allocator()`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;function&lowbar;rep&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:BloombergLP/bslstl/Function_Rep.adoc[Function&lowbar;Rep]& other) noexcept;
----


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