[#bsl-weak_ptr-0d-operator_assign-0d07]
= xref:bsl.adoc[bsl]::xref:bsl/weak_ptr-0d.adoc[weak&lowbar;ptr]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Make this weak pointer refer to the same object (if any) as the specified `rhs` weak pointer&period; If `rhs` is not a reference to this weak pointer, decrement the number of weak references to the object this weak pointer managed (if any), and reset `rhs` to an empty state&period; Return a reference providing modifiable access to this weak pointer&period; Note that if `rhs` is in an empty state, this weak pointer will be set to an empty state&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/weak_ptr-0d.adoc[weak&lowbar;ptr]&
operator&equals;(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;weak&lowbar;ptr&gt;] rhs) noexcept;
----


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