C4 Engine
C4 Engine API Documentation

Array::PurgeArray

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

void PurgeArray(void);

Description
The PurgeArray 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 also deallocated, returning the array to its initial state. To destory all objects in an array without deallocating the storage, call the Array::ClearArray function.
See Also

Array::ClearArray

Array::RemoveArrayElement

Array::RemoveLastArrayElement

Array::SetArrayElementCount