[#BloombergLP-bslma-ManagedPtr-0fa-2constructor-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]::ManagedPtr
:relfileprefix: ../../../
:mrdocs:

Create a managed pointer by taking ownership from compatible `original`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class BDE&lowbar;OTHER&lowbar;TYPE&gt;
ManagedPtr(xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr&lt;BDE&lowbar;OTHER&lowbar;TYPE&gt;]&& original) noexcept
requires bsl&colon;&colon;is&lowbar;convertible&lt;BDE&lowbar;OTHER&lowbar;TYPE &ast;, TARGET&lowbar;TYPE &ast;&gt;&colon;&colon;value;
----

== Description

Create a managed pointer having the same target object as the specified `original`, transfer ownership of the object managed by `original` (if any) to this managed pointer, and reset `original` to empty&period; `TARGET&lowbar;TYPE` must be an accessible and unambiguous base of `BDE&lowbar;OTHER&lowbar;TYPE`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| compatible managed pointer from which to take ownership
|===


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