C4 Engine
C4 Engine API Documentation

Array::ClearArray

Defined in:  TSArray.h
Removes all objects from an array.
Prototype

void ClearArray(void);

Description
The ClearArray function destroys all objects in an array (in reverse order) and sets the size of the array to zero. The storage for the array is not deallocated, so this function is best used when the array is likely to be filled with a similar amount of data again. To both destroy all objects in an array and deallocate the storage, call the Array::PurgeArray function.
See Also

Array::PurgeArray

Array::RemoveArrayElement

Array::RemoveLastArrayElement

Array::SetArrayElementCount