CObject::operator delete
voidoperatordelete(void*p);
Remarks
For the Release version of the library, operator delete simply frees the memory allocated by operator new. In the Debug version, operator delete participates in an allocation-monitoring scheme designed to detect memory leaks. If you override operators new and delete, you forfeit the diagnostic capability.
Example
See CObList::CObList for a listing of the CAge
class used in the CObject examples.
void CAge::operator delete(void* p)
{
free(p);
}
void CAge::operator delete(void *p, LPCSTR lpszFileName, int nLine)
{
free(p);
}
CObject Overview | Class Members | Hierarchy Chart
See Also CObject::operator new