![]() |
Home | Libraries | People | FAQ | More |
Constructor.
recycled_ptr( recycled< T >& bin);
Upon construction, this acquires exclusive access to an object of type
T
which is either recycled
from the specified bin, or newly allocated. The object is in an unknown
but valid state.
static recycled< std::string > [link url.ref.boost__urls__grammar__recycled_ptr.bin `bin`]; recycled_ptr< std::string > ps( [link url.ref.boost__urls__grammar__recycled_ptr.bin `bin`] ); // Put the string into a known state ps->clear();
&this->[link url.ref.boost__urls__grammar__recycled_ptr.bin `bin`]() == &[link url.ref.boost__urls__grammar__recycled_ptr.bin `bin`] && ! this->[link url.ref.boost__urls__grammar__recycled_ptr.empty `empty`]()
Name |
Description |
---|---|
|
The recycle bin to use |