Namespace: Rx – Class: CRxArrayInt – Header: Rx.Core/RxArrayTypes.h

CRxArrayInt::Resize Method

C++
void Resize(size_t nNewElementCount, const int& tValue)

Resizes the array to contain count elements.

If the current size is greater than nNewElementCount, the array is reduced to its first nNewElementCount elements.

If the current size is less than count, additional copies of tValue are appended.

Parameters

[size_t] nNewElementCount

New size of the array.

[const int&] tValue

The value to initialize the new elements with.