redefining new and delete operators in cpp for tracking memory allocations: cannot track size of delete of whole memory blocks

前端 未结 0 1359
既然无缘
既然无缘 2020-12-02 04:03

I would like to define some re-definitions of the new and delete operators in c++ to play a bit around and track memory allocations / freeing, something in this kind:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题