Share

AcArray::setGrowLength

C++

AcArray<T,R>& setGrowLength(
    int
);

Description

Sets the minimum number of items to increase the array by, when it needs to grow.

This value is only used if it's larger than the current buffer size. Otherwise, we double the current buffer size (or add 1M to it).

The grow length (AcArray::growLength()) determines how many additional elements to allocate in the situation where adding an element to the array causes the logical length to become greater than the physical length. When this happens, the physical length will increase by the grow length. The grow length value must be greater than zero.

Parameters

Parameters Description
glen Input grow length

Links

AcArray

Was this information helpful?