[#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 `other`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;managedptr&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]& other);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| managed pointer to exchange with this object
|===


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