[#boost-urls-grammar-recycled]
= xref:boost/urls/grammar/recycled.adoc[boost::urls::grammar::recycled]
:relfileprefix: ../../../
:mrdocs:

A thread&hyphen;safe collection of instances of T

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/recycled.hpp#L71[boost&sol;url&sol;grammar&sol;recycled&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
class recycled;
----

== Member Functions

[cols=2]
|===
| Name
| Description
| xref:boost/urls/grammar/recycled/2constructor.adoc[`recycled`]         [.small]#[constructor]#
| Constructor
| xref:boost/urls/grammar/recycled/2destructor.adoc[`&#126;recycled`] [.small]#[destructor]#
| Destructor
|===

== Friends

[cols=2]
|===
| Name
| Description
| `xref:boost/urls/grammar/recycled_ptr.adoc[boost::urls::grammar::recycled&lowbar;ptr]`
| A pointer to a shared instance of T
|===

== Description

Instances of this type may be used to control where recycled instances of T come from when used with xref:boost/urls/grammar/recycled_ptr.adoc[`recycled&lowbar;ptr`]&period;

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

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

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

xref:boost/urls/grammar/recycled_ptr.adoc[`recycled&lowbar;ptr`]&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
