[#boost-urls-grammar-recycled_ptr-2constructor-056]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::xref:boost/urls/grammar/recycled_ptr.adoc[recycled&lowbar;ptr]::recycled&lowbar;ptr
:relfileprefix: ../../../../
:mrdocs:


Constructor

== Synopsis


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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
recycled&lowbar;ptr();
----

== Description


Upon construction, this acquires        exclusive access to an object of type        `T` which is either recycled from a        global recycle bin, or newly allocated&period;        The object is in an unknown but        valid state&period;


=== Example

[,cpp]
----
recycled_ptr< std::string > ps;

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

=== Postconditions

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


== See Also


xref:boost/urls/grammar/recycled.adoc[recycled]&period;






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