[#bsl-weak_ptr-0d-2constructor-0fa] = xref:bsl.adoc[bsl]::xref:bsl/weak_ptr-0d.adoc[weak_ptr]::weak_ptr :relfileprefix: ../../ :mrdocs: Move‐construct a `weak_ptr` from a compatible `other`. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class COMPATIBLE_TYPE> weak_ptr(xref:bsl/weak_ptr-0d.adoc[weak_ptr<COMPATIBLE_TYPE>]&& other) noexcept; ---- == Description Create a weak pointer that refers to the same object (if any) as the specified `other` weak pointer, and reset `other` to an empty state. Note that this operation does not involve any change to reference counts. == Parameters [cols="1,4"] |=== | Name| Description | *other* | compatible weak pointer to move from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#