https://www.boost.org/doc/libs/1_72_0/doc/html/interprocess/driven_memory_segments.html#interprocess.management_memory_segments.making_ipc_easy.driven_memory_segments_intro https://www.boost.org/doc/libs/1_72_0/doc/html/interprocess/managed_memory_segments.html#interprocess.managed_memory_segments.making_ipc_easy.managed_memory_segments_intro,特别是关于basic_managed_heap_memory and basic_managed_external_buffer
我在这个网站上有无数的示例,它们展示了如何使用此类托管内存段,但通常侧重于managed_mapped_file and managed_shared_memory它们具有完全相同的功能集,因此您可以以相同的方式将它们与以前的托管堆段一起使用:https://stackoverflow.com/search?q=user%3A85371+进程间+分配器 https://stackoverflow.com/search?q=user%3A85371+interprocess+allocator