Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [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;


Notes