[#bsl-weak_ptr-0d-operator_assign-0d03] = 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. Decrement the number of weak references to the object this weak pointer manages (if any), and increment the number of weak references to the object managed by `rhs` (if any). 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:bsl/weak_ptr-0d.adoc[weak_ptr] const& rhs) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#