C++
AcArray<T,R>& insertAt( int index, T&& value );
Description
This function inserts value at the specified index. The array elements starting at index will have their index position increased by one and the logical length of the array will increase by one. If the physical length is not long enough, it will increase by the grow length (with the usual caveat about insufficient memory, as described in the Overview). Calling insertAt(length(), value) is equivalent to append(value).
The index must be greater than or equal to zero and less than AcArray::length().
Parameters
Parameters | Description |
---|---|
index | Input index to the position to insert a new element into the array |
value | Input value to insert |