System::Collections::Generic::List::operator[] method

List::operator method

Accessor function.

vector_t::reference System::Collections::Generic::List<T>::operator[](int index)
ParameterTypeDescription
indexintIndex to get element from.

ReturnValue

Reference to element at specified position.

See Also

List::operator const method

Accessor function.

vector_t::const_reference System::Collections::Generic::List<T>::operator[](int index) const
ParameterTypeDescription
indexintIndex to get element from.

ReturnValue

Const reference to element at specified position.

See Also