overloading new , new[] , delete, delete - C++ Forum
operator new, operator new[], operator delete, and operator delete[] are special functions which can be replaced (not overloaded) by user-provided functions with matching signatures. Just write them and the C++-supplied new/delete will disappear in any tr...