operator=

Assignment

Synopsis

recycled_ptr&
operator=(const recycled_ptr& other) noexcept;

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

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

Description

If other references an object, this acquires shared ownership and references the same recycle bin as other. The previous object if any is released.

Effects

this->release()

Postconditions

&this->bin() == &other->bin() && this->get() == other.get()

Exception Safety

Throws nothing.