:relfileprefix: ../../../../
[#ABDEE1A0C212F3D1CA1B9D142A05CE7800ED1277]

= Function recycled_ptr::recycled_ptr

pass:v,q[Constructor]


== Synopsis

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

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

== Description

pass:v,q[If `other` references an object, the] pass:v,q[newly constructed pointer acquires]
pass:v,q[shared ownership. Otherwise this is]
pass:v,q[empty. The new pointer references]
pass:v,q[the same recycle bin as `other`.]

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

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



== Return Value

* `void` 


== Parameters

|===
| Name | Type 

| *other*
| ``

|===



