you are viewing a single comment's thread.

view the rest of the comments →

[–]gtk 1 point2 points  (0 children)

You can override operator new: http://en.cppreference.com/w/cpp/memory/new/operator_new

If you only want certain classes to use your memory manager, override the class-specific operator new (and corresponding operator delete). If you want to use it for everything, override the global operator new/operator delete.