[#bsl-shared_ptr-0a-operator_assign-0e] = xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared_ptr]::operator= :relfileprefix: ../../ :mrdocs: Make this shared pointer manage the same modifiable object as the specified `rhs` shared pointer to the (template parameter) type `COMPATIBLE_TYPE`, use the same deleter as `rhs`, and refer to `rhs.get()`; return a reference providing modifiable access to this shared pointer. Reset `rhs` to an empty state, not pointing to any object, unless `*this` is the same object as `rhs`. Note that if `rhs` is empty, then this shared pointer will also be empty after the assignment. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[shared_ptr]& operator=(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<shared_ptr>] rhs) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#