我正在做一些并发程序,不知道如何将tbb concurrent_hash_map转换为普通的std::map。tbb::concurrent_hash_map 对定期 std::map 或以另一种方式获取存储在并发图中的值。有人能帮帮我吗?
tbb::concurrent_hash_map
std::map
我会用天真无邪的方式,迭代哈希图,并在循环中把项目添加到std::map中。