operator[]()

ListPtr::operator method

Accessor.

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

Arguments

ParameterTypeDescription
idxintIndex to access element from.

Return Value

Reference to specified element.

ListPtr::operator const method

Accessor.

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

Arguments

ParameterTypeDescription
idxintIndex to access element from.

Return Value

Const reference to specified element.

See Also