:relfileprefix: ../../../../
[#90F08C8D07D0E8B78C524F70A71CDDD292A33D1D]

= Function recycled_ptr::operator=

pass:v,q[Assignment]


== Synopsis

Declared in header `</boost/url/grammar/recycled.hpp#L394[boost/url/grammar/recycled.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/grammar/recycled_ptr.adoc[recycled_ptr]&
operator=(const xref:boost/urls/grammar/recycled_ptr.adoc[recycled_ptr]& other) noexcept;
----

== Description

pass:v,q[If `other` references an object,] pass:v,q[this acquires shared ownership and]
pass:v,q[references the same recycle bin as]
pass:v,q[`other`. The previous object if any]
pass:v,q[is released.]

=== Effects
[,cpp]
----
this->release()
----

=== Postconditions
[,cpp]
----
&this->bin() == &other->bin() && this->get() == other.get()
----

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `` 


== Parameters

|===
| Name | Type 

| *other*
| ``

|===



