[#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, manager, and invoker with `other`. == 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; ---- == Description 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()`. == Parameters [cols="1,4"] |=== | Name| Description | *other* | representation with which to exchange state |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#