:relfileprefix: ../../../../ [#boost-urls-grammar-recycled_ptr-2constructor-0ac] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/grammar.adoc[pass:[grammar]]::xref:boost/urls/grammar/recycled_ptr.adoc[pass:[recycled_ptr]]::recycled_ptr Constructor === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- recycled_ptr( xref:boost/urls/grammar/recycled.adoc[recycled]& bin, std::nullptr_t) noexcept; ---- === Description After construction, this is empty and refers to the specified recycle bin. [,cpp] ---- static recycled< std::string > bin; recycled_ptr< std::string > ps( bin, nullptr ); // Acquire a string and put it into a known state ps->acquire(); ps->clear(); ---- [,cpp] ---- &this->bin() == &bin && this->empty() ---- === Throws nothing. === Parameters |=== | Name | Description | *bin* | The recycle bin to use |=== === See Also xref:boost/urls/grammar/recycled_ptr/acquire.adoc[acquire] , xref:boost/urls/grammar/recycled.adoc[recycled] , xref:boost/urls/grammar/recycled_ptr/release.adoc[release] .