...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
recycled_ptr();
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.
recycled_ptr< std::string > ps; // Put the string into a known state ps->clear();
&this->bin() != nullptr && ! this->empty()