[#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_ptr]::recycled_ptr :relfileprefix: ../../../../ :mrdocs: Constructor == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/recycled.hpp#L271[boost/url/grammar/recycled.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- recycled_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. The object is in an unknown but valid state. === 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]. [.small]#Created with https://www.mrdocs.com[MrDocs]#