:relfileprefix: ../../../../ [#boost-urls-grammar-recycled_ptr-operator_assign-09] = xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/grammar.adoc[pass:[grammar]]::xref:boost/urls/grammar/recycled_ptr.adoc[pass:[recycled_ptr]]::operator= Assignment == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:boost/urls/grammar/recycled_ptr.adoc[recycled_ptr]& operator=(xref:boost/urls/grammar/recycled_ptr.adoc[recycled_ptr] const& other) noexcept; ---- == Description If `other` references an object, this acquires shared ownership and references the same recycle bin as `other`. The previous object if any is released. === Effects [,cpp] ---- this->release() ---- === Postconditions [,cpp] ---- &this->bin() == &other->bin() && this->get() == other.get() ---- === Exception Safety Throws nothing. == Parameters |=== | Name | Description | *other* | The pointer to copy from |===