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

后端 未结 0 1493
南方客
南方客 2021-02-19 18:48

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

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