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


访问器。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| idx | int | 用于访问元素的索引。 |

### ReturnValue

对指定元素的引用。

## 另见

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


访问器。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| idx | int | 用于访问元素的索引。 |

### ReturnValue

对指定元素的常量引用。

## 另见

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