Luna::WeakRef::operator=

WeakRef & operator=(const Ref< _Ty > &rhs)

Assigns this reference by coping the pointer from one strong reference of the same type.

The weak reference counter of the new boxed object, if not null, will be increased. The weak reference counter of the original boxed object, if not null, will be decreased before assignment.

Parameters

  • in rhs

    The reference to set.