C4 Engine
C4 Engine API Documentation

Array::RemoveArrayElement

Defined in:  TSArray.h
Removes an object from an array.
Prototype

void RemoveArrayElement(int32 index);

Parameters
index The location at which to remove an object.
Description
The RemoveArrayElement function decreases the size of an array by one, destroys the object at location index, and moves all of the existing elements at location index + 1 or greater down by one. When the existing elements are moved, they are move-constructed to their new locations, and the old objects are destroyed.

If the index parameter is greater than or equal to the current size of the array, then calling the RemoveArrayElement function has no effect.
See Also

Array::RemoveLastArrayElement

Array::InsertArrayElement

Array::AppendArrayElement

Array::GetArrayElementCount

Array::SetArrayElementCount