Allocate two objects contiguously. Get the first one from the address of the second. After creation, don't statically know the second object's type

后端 未结 0 393
南笙
南笙 2020-12-22 14:34

I\'m trying to write a factory that allocates two objects contiguously in a single block of memory. Then, given the address of the second object, I need to obtain the first

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