System.DynamicArray.operator []

From RAD Studio API Documentation
Jump to: navigation, search


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


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


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;