System::SmartPtr::RemoveAliasing 方法

SmartPtr::RemoveAliasing method

从指针中移除别名(由别名构造函数创建),确保它管理(如果是共享)或跟踪(如果是弱引用)指向的同一对象。

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

ReturnValue

指向同一对象的指针,该指针负责该对象的生命周期管理。

另见