Share

insertAt Method

Overload List

Method Description
AcArray::insertAt (int, T&) 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().
AcArray::insertAt (int, T&&) 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().

Was this information helpful?