There are three functions
void operator delete(void * hPointer); void operator delete(void * hPointer, size_t ulSize); void operator delete[](void * hPointer, size_t ulSize); which call the same code. For example (and for example only):
{ hPointer=nullptr; return; } It would be possible to copy the code for each function, but it would be better to use a system of aliases. That is, for any delete , the same function must be called. The use of preprocessor directives is excluded, because the function signatures are different.
kmfree, then why make a garden? This is the repetition of the code, which will not get rid of. Secondly, where is the "delete incomplete" here? - AnT