## ListPtr class


[List](../list/) pointer with access operators. This type is a pointer to manage other object's deletion. It should be allocated on stack and passed to functions either by value or by const reference.

```cpp
template<typename T>class ListPtr : public System::SmartPtr<List<T>>
```

## 方法

| 方法 | 描述 |
| --- | --- |
| [ListPtr](./listptr/)(std::nullptr_t) | 初始化空指针。 |
| [ListPtr](./listptr/)(const SharedPtr\<List\<T\>\>\&) | 初始化指向指定列表的指针。 |
| [operator==](./operator==/)(std::nullptr_t) const | 检查 [List](../list/) 指针是否为空。 |
| [operator[]](./operator[]/)(int) | 访问器。 |
| [operator[]](./operator[]/)(int) const | 访问器。 |
## 另见

* Class [SmartPtr](../../system/smartptr/)
* Namespace [System::Collections::Generic](../)
* Library [Aspose.Page for C++](../../)
