在C++中是否可以在特定的内存位置创建新对象?我有一个共享内存块,我想在其中创建一个对象.这可能吗?
c++ memory location pointers object
作为一个编程练习,我在C中编写了一个标记 - 清除垃圾收集器.我希望扫描数据段(全局等)以获得指定内存的指针,但我不知道如何获取范围该段的地址.我怎么能这样做?
c garbage-collection memory-management global-variables memory-layout
c ×1
c++ ×1
garbage-collection ×1
global-variables ×1
location ×1
memory ×1
memory-layout ×1
memory-management ×1
object ×1
pointers ×1