recycled_ptr

Constructor

Synopsis

recycled_ptr();

Declared in file <include/boost/url/grammar/recycled.hpp> on line 272

Defined in file <include/boost/url/grammar/impl/recycled.hpp> on line 120

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

recycled_ptr< std::string > ps;

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

Postconditions

&this->bin() != nullptr && ! this->empty()