简体   繁体   English

如何在共享内存中使用hash_map

[英]How to use hash_map in shared memory

I want to do inter process communication using shared memory. 我想使用共享内存进行进程间通信。 In the shared memory I want to use hash_map. 在共享内存中,我想使用hash_map。 Is it possible to create hash_map in shared memory? 是否可以在共享内存中创建hash_map?

You can use the boost::interprocess library. 您可以使用boost::interprocess库。 It supports interprocess communication through sharing and supports advanced concepts such as shared memory containers. 它通过共享支持进程间通信,并支持诸如共享内存容器之类的高级概念。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM