DestructElements

template< class TYPE >
void AFXAPI DestructElements( TYPE* pElements, int nCount );

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 Collections: How to Make a Type-Safe Collection in Visual C++ Programmer’s Guide.

See Also   CArray, CList, CMap