Store Memory Resource from which an object was created to the object itself to be able to call delete as usual?

后端 未结 0 885
生来不讨喜
生来不讨喜 2021-02-19 18:27

When a memory resource (or allocator) is used to create an object, one needs to remember at deletion by which memory resource it was created.

Is it a good pattern to stor

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