How to expand the array

An array can be expanded by using the ExpandL() function.

ExpandL() constructs a new element at position 1 within a CArrayFixFlat<class T> array. In this example, the new element inserted at position 1 is a TElement type object, constructed using the TElement default constructor. It is essential that a default constructor exists before using this function.

CArrayFixFlat<TElement>* fixflat;
fixflat = new (ELeave) CArrayFixFlat<TElement>(8);

Use ExtendL() to append the newly constructed TElement at the end of the fixflat array.