boost::urls::grammar::recycled_ptr::recycled_ptr
Constructor
Synopsis
explicit
recycled_ptr(recycled<T>& bin);
recycled_ptr(
recycled<T>& bin,
std::nullptr_t) noexcept;
recycled_ptr();
recycled_ptr(std::nullptr_t) noexcept;
recycled_ptr(recycled_ptr const& other) noexcept;
recycled_ptr(recycled_ptr&& other) noexcept;
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.
static recycled< std::string > bin;
recycled_ptr< std::string > ps( bin );
// Put the string into a known state
ps->clear();
&this->bin() == &bin && ! this->empty()
See Also
recycled .