Resize()

Array::Resize(ArrayPtr<Type>&, int) method

Changes the size of the specified array to the specified value or crates new array with specified size.

template<typename Type> static void System::Array<T>::Resize(ArrayPtr<Type> &arr, int new_size)

Arguments

ParameterTypeDescription
arrArrayPtr<Type>&Array to resize. If arr is null-pointer, the new array will be created
new_sizeintThe new size of the array, or the size of the new array of arr is null

See Also