Home | Libraries | People | FAQ | More |
A pointer to shared instance of T.
Defined in header <boost/url/grammar/recycled.hpp>
template< class T> class recycled_ptr
Name |
Description |
---|---|
Return the referenced object. |
|
Return the referenced recycle bin. |
|
Return true if this does not reference an object. |
|
Return the referenced object. |
|
Assignment. |
|
Return the referenced object. |
|
Return the referenced object. |
|
Return true if this references an object. |
|
recycled_ptr [constructor] |
Constructor. |
Release the referenced object. |
|
~recycled_ptr [destructor] |
Destructor. |
This is a smart pointer container which can acquire shared ownership of an
instance of T
upon or after
construction. The instance is guaranteed to be in a valid, but unknown state.
Every recycled pointer references a valid recycle bin.
static recycled< std::string > bin; recycled_ptr< std::string > ps( bin ); // Put the string into a known state ps->clear();
Type |
Description |
---|---|
|
the type of object to acquire, which must be DefaultConstructible. |
Convenience header <boost/url/grammar.hpp>