## SmartPtr::reset() method


使指针指向 nullptr。

```cpp
void System::SmartPtr<T>::reset()
```

## 另见

* Class [SmartPtr](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## SmartPtr::reset(Pointee_ *) method


设置指向的对象。

```cpp
void System::SmartPtr<T>::reset(Pointee_ *ptr)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| ptr | Pointee_ * | 指向新引用对象的原始指针。 |

## 另见

* Typedef [Pointee_](../pointee_/)
* Class [SmartPtr](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
