## 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>>
```

## Methods

| Method | Description |
| --- | --- |
| [ListPtr](./listptr/)(std::nullptr_t) | Initializes null-pointer. |
| [ListPtr](./listptr/)(const SharedPtr\<List\<T\>\>\&) | Initializes pointer to specified list. |
| [operator==](./operator==/)(std::nullptr_t) const | Checks if [List](../list/) pointer is null. |
| [operator[]](./operator[]/)(int) | Accessor. |
| [operator[]](./operator[]/)(int) const | Accessor. |
## See Also

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