[#bsl-weak_ptr-0d-2constructor-086]
= xref:bsl.adoc[bsl]::xref:bsl/weak_ptr-0d.adoc[weak&lowbar;ptr]::weak&lowbar;ptr
:relfileprefix: ../../
:mrdocs:

Create a `weak&lowbar;ptr` that shares ownership with the specified `other` weak pointer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class COMPATIBLE&lowbar;TYPE&gt;
weak&lowbar;ptr(xref:bsl/weak_ptr-0d.adoc[weak&lowbar;ptr&lt;COMPATIBLE&lowbar;TYPE&gt;] const& other) noexcept;
----


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