[#BloombergLP-bslma-ManagedPtr_Members-moveAssign]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr_Members.adoc[ManagedPtr&lowbar;Members]::moveAssign
:relfileprefix: ../../../
:mrdocs:

Destroy the managed object and take ownership from `other`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
moveAssign(xref:BloombergLP/bslma/ManagedPtr_Members.adoc[ManagedPtr&lowbar;Members]* other);
----

== Description

Destroy the currently managed object (if any), reset this object to have the same `pointer` as the specified `other` object, and, if `0 !&equals; other&hyphen;&gt;pointer()`, the same deleter as `other`, then put `other` into an unset state&period; This method has no effect if `this &equals;&equals; other`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| object from which to take ownership
|===


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