[#boost-urls-grammar-recycled_ptr-operator_assign-09] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::xref:boost/urls/grammar/recycled_ptr.adoc[recycled_ptr]::operator= :relfileprefix: ../../../../ :mrdocs: Assignment == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/recycled.hpp#L393[boost/url/grammar/recycled.hpp]>` [source,cpp,subs="verbatim,replacements,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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#