:relfileprefix: ../../../../
[#AC8AB5B1FAEA312BF7E7C867FABFF3369F7B06B8]

= Function recycled_ptr::recycled_ptr

pass:v,q[Constructor]


== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
recycled_ptr(
    xref:boost/urls/grammar/recycled.adoc[recycled]<T>& bin,
    nullptr_t) noexcept;
----

== Description

pass:v,q[After construction, this is empty and] pass:v,q[refers to the specified recycle bin.]

=== Example
[,cpp]
----
static recycled< std::string > bin;

recycled_ptr< std::string > ps( bin, nullptr );

// Acquire a string and put it into a known state
ps->acquire();
ps->clear();
----

=== Postconditions
[,cpp]
----
&this->bin() == &bin && this->empty()
----

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



== Return Value

* `void` 


== Parameters

|===
| Name | Type 

| *bin*
| ``

| **
| `nullptr_t`

|===



