Share via


DestructElements

template<classTYPE**>**
voidAFXAPIDestructElements(TYPE*pElements,intnCount**);**

Parameters

TYPE

Template parameter specifying the type of the elements to be destroyed.

pElements

Pointer to the elements.

nCount

Number of elements to be destroyed.

Remarks

The CArray, CList, and CMap class members call this function when elements are destroyed.

The default implementation calls the destructor for each element. For information on implementing this and other helper functions, see the article in Visual C++ Programmer’s Guide.

See Also   CArray, CList, CMap