Assignment

Synopsis

Declared in header </boost/url/grammar/recycled.hpp#L394[boost/url/grammar/recycled.hpp,window=blank_]>

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

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.

Return Value

  • ``

Parameters

Name Type

other

``