:relfileprefix: ../../../../
[#8B27A5406D6523B371A569A96BB1C29151A262B6]

= Function recycled_ptr::recycled_ptr

pass:v,q[Constructor]


== Synopsis

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

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

== Description

pass:v,q[Upon construction, this acquires] pass:v,q[exclusive access to an object of type]
pass:v,q[`T` which is either recycled from the]
pass:v,q[specified bin, or newly allocated.]
pass:v,q[The object is in an unknown but]
pass:v,q[valid state.]

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

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

// Put the string into a known state
ps->clear();
----

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



== Return Value

* `void` 


== Parameters

|===
| Name | Type 

| *bin*
| ``

|===



