Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
std::pair<int*, std::size_t> p = managed_shm.find<int>("Integer");
有人可以为我提供这个 find 方法的定义吗?
如果您遵循 boost headers 中的代码,您会发现它,这里是起点:
class basic_managed_shared_memory在boost/interprocess/managed_shared_memory.hpp(我检查的是 1.4.5 版本,你没有指定你的版本!)
class basic_managed_shared_memory
boost/interprocess/managed_shared_memory.hpp