PAD_DELETE()

This macro deallocates or frees the memory that is used by a CPad.

Syntax

PAD_DELETE(pad, ptr)

Description

The PAD_DELETE() macro deallocates memory that was used for a CPad by calling the deallocate() function and invoking the necessary destructors. PAD_DELETE() invokes helper templates to ensure that deallocate() and the destructors are invoked appropriately.

PAD_DELETE() can be used in array and non-array contexts as follows:
PAD_DELETE(pad, pObj);
PAD_DELETE(pad, pStr);

The array style helps to properly support the calling of destructors when it frees an array of objects that have a destructor.