System.DynamicArray.operator []

From RAD Studio API Documentation
Jump to: navigation, search

C++

DynamicArray<T>::operator[](DynArrInt index)
DynamicArray<T>::operator[](DynArrInt index) const

Properties

Type Visibility Source Unit Parent
function public sysdyn.h System DynamicArray


Description

Provides access to the data held by the dynamic array.

The const version of the operator [] returns a copy of the data at the specified subscript. The non-const version returns a reference to the data, allowing you to modify the data.

cout << i_array[0]=10;