System::Collections::Generic::List::operator[] 方法

List::operator method

访问器函数。

vector_t::reference System::Collections::Generic::List<T>::operator[](int index)
参数类型描述
索引int用于获取元素的索引。

ReturnValue

对指定位置元素的引用。

另见

List::operator const method

访问器函数。

vector_t::const_reference System::Collections::Generic::List<T>::operator[](int index) const
参数类型描述
索引int用于获取元素的索引。

ReturnValue

对指定位置元素的常量引用。

另见