[#bsl-shared_ptr-0a-operator_assign-0f] = 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 `(ELEMENT_TYPE *)rhs.get()`; return a reference providing modifiable access to this shared pointer. Note that if `rhs` is empty, then this shared pointer will also be empty after the assignment. Also note that if `*this` is the same object as `rhs`, then this method has no effect. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[shared_ptr]& operator=(xref:bsl/shared_ptr-0a.adoc[shared_ptr] const& rhs) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#