[#BloombergLP-bslma-ManagedPtr-0fa-swap] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]::swap :relfileprefix: ../../../ :mrdocs: Exchange the value and ownership of this managed pointer with the specified `other` managed pointer. == Synopsis Declared in `<bslma_managedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]& other); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#