RemoveAliasing()

SmartPtr::RemoveAliasing() const method

Removes aliasing (created by an aliasing constructor) from pointer, makes sure it manages (if shared) or tracks (if weak) the same object it points to.

SmartPtr_ System::SmartPtr<T>::RemoveAliasing() const

Return Value

The pointer to the same object this pointer points to which looks after the lifetime of the same object.

See Also