:relfileprefix: ../../../
[#boost-urls-grammar-recycled]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/grammar.adoc[pass:[grammar]]::recycled


A thread-safe collection of instances of T


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/recycled.hpp#L88[boost/url/grammar/recycled.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<class T>
class recycled;
----

===  Member Functions
[cols=2,separator=¦]
|===
¦Name ¦Description
¦xref:boost/urls/grammar/recycled/2constructor.adoc[`recycled`] [.small]#[constructor]# ¦

Constructor

¦xref:boost/urls/grammar/recycled/2destructor.adoc[`~recycled`] [.small]#[destructor]# ¦

Destructor

|===

=== 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_ptr]
.
[,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_ptr]
.



