Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
grammar::recycled_ptr::operator= (2 of 2 overloads)

Assignment.

Synopsis
recycled_ptr&
operator=(
    recycled_ptr const& other);
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->[link url.ref.boost__urls__grammar__recycled_ptr.release `release`]()
Postconditions
&this->[link url.ref.boost__urls__grammar__recycled_ptr.bin `bin`]() == &other->bin() && this->[link url.ref.boost__urls__grammar__recycled_ptr.get `get`]() == other.get()
Exception Safety

Throws nothing.

Parameters

Name

Description

other

The pointer to copy from


PrevUpHomeNext