:relfileprefix: ../../../../
[#boost-urls-grammar-recycled_ptr-operator_assign-0b]

== 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 `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/recycled.hpp#L382[boost/url/grammar/recycled.hpp,window=blank_]>`

[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]&& other) noexcept;
----

=== Description


If `other` references an object,
ownership is transferred including
a reference to the recycle bin. After
the move, the moved-from object is empty.
[,cpp]
----
this->release()
----
[,cpp]
----
&this->bin() == &other->bin()
----

=== Throws nothing.





=== Parameters

|===
| Name | Description 

| *other*
| 
The pointer to move from

|===




