deallocate()
This function deallocates the specified amount of memory. This memory must have been previously allocated by the allocate() function.
Syntax
virtual void deallocate(void *ptr)
Description
The deallocate() function deallocates memory for the CPad and returns it to the heap.
Note: Use
this function only if you are creating or modifying C-style code and
want to deallocate memory as you would with a call to
free
.
Otherwise (for example, if you are creating or modifying C++ code
and want to deallocate memory as you would with a call to delete
or delete[]
),
use instead the PAD_DELETE macro, which deallocates memory and manages
destructors (see PAD_DELETE()).Exceptions
This function throws an exception if the specified object was not allocated by using the allocate() function.