[#bsl-shared_ptr-0a-2constructor-077]
= xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr]::shared&lowbar;ptr
:relfileprefix: ../../
:mrdocs:

Move&hyphen;construct a `shared&lowbar;ptr` from `original`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;sharedptr&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
shared&lowbar;ptr(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;shared&lowbar;ptr&gt;] original) noexcept;
----

== Description

Create a shared pointer that refers to and assumes management of the same object (if any) as the specified `original` shared pointer, using the same deleter as `original` to destroy the shared object, and reset `original` to an empty state, not pointing to any object&period; Note that if `original` is empty, then an empty shared pointer is created, which may still point to an un&hyphen;managed object if `original` were constructed through an aliasing constructor&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| source object to copy or move from
|===


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