Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to destroy the array

If an array consists of T or R type elements, it can be destroyed by simply deleting it:

delete array;

Where the array is either a CArrayPtrFlat or CArrayPtrSeg object and the elements are pointers to CBase derived objects, then these objects should first be destroyed by calling the ResetAndDestroy() member function:

array->ResetAndDestroy();
delete array;

[Top]


Notes