## SmartPtr::RemoveAliasing 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.

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


### ReturnValue

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

## See Also

* Typedef [SmartPtr_](../smartptr_/)
* Class [SmartPtr](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
