recycled_ptr

Constructor

Synopsis

recycled_ptr(
    recycled<T>& bin,
    nullptr_t) noexcept;

Declared in file <include/boost/url/grammar/recycled.hpp> on line 243

Defined in file <include/boost/url/grammar/impl/recycled.hpp> on line 111

Description

After construction, this is empty and refers to the specified recycle bin.

Example

static recycled< std::string > bin;

recycled_ptr< std::string > ps( bin, nullptr );

// Acquire a string and put it into a known state
ps->acquire();
ps->clear();

Postconditions

&this->bin() == &bin && this->empty()

Exception Safety

Throws nothing.