Array::ClearArray
Defined in:
Removes all objects from an array.
TSArray.h
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