Constructor
Synopsis
Declared in header </boost/url/grammar/recycled.hpp#L209[boost/url/grammar/recycled.hpp,window=blank_]>
recycled_ptr(recycled<T>& bin);
Description
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.
Example
static recycled< std::string > bin;
recycled_ptr< std::string > ps( bin );
// Put the string into a known state
ps->clear();
Postconditions
&this->bin() == &bin && ! this->empty()
Return Value
-
void
Parameters
Name | Type |
---|---|
bin |
`` |