## ListPtr::operator[](int) method


Accessor.

```cpp
std::vector<T>::reference System::Collections::Generic::ListPtr<T>::operator[](int idx)
```


| Parameter | Type | Description |
| --- | --- | --- |
| idx | int | Index to access element from. |

### ReturnValue

Reference to specified element.

## See Also

* Class [ListPtr](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## ListPtr::operator[](int) const method


Accessor.

```cpp
std::vector<T>::const_reference System::Collections::Generic::ListPtr<T>::operator[](int idx) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| idx | int | Index to access element from. |

### ReturnValue

Const reference to specified element.

## See Also

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