[#bsl-weak_ptr-0d-operator_assign-0d07] = xref:bsl.adoc[bsl]::xref:bsl/weak_ptr-0d.adoc[weak_ptr]::operator= :relfileprefix: ../../ :mrdocs: Make this weak pointer refer to the same object (if any) as the specified `rhs` weak pointer. 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. Return a reference providing modifiable access to this weak pointer. Note that if `rhs` is in an empty state, this weak pointer will be set to an empty state. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/weak_ptr-0d.adoc[weak_ptr]& operator=(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<weak_ptr>] rhs) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#