[#BloombergLP-bslstl-Function_Rep-swap] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Function_Rep.adoc[Function_Rep]::swap :relfileprefix: ../../../ :mrdocs: Exchange this object's target object, manager function, and invoker with those of the specified `other` object. The behavior is undefined unless `this‐>get_allocator() == other‐>get_allocator()`. == Synopsis Declared in `<bslstl_function_rep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:BloombergLP/bslstl/Function_Rep.adoc[Function_Rep]& other) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#