如何将 tbb concurrent_hash_map 转换为普通的 std::map?

问题描述 投票:1回答:1

我正在做一些并发程序,不知道如何将tbb concurrent_hash_map转换为普通的std::map。tbb::concurrent_hash_map 对定期 std::map 或以另一种方式获取存储在并发图中的值。有人能帮帮我吗?

c++ concurrenthashmap tbb
1个回答
3
投票

我会用天真无邪的方式,迭代哈希图,并在循环中把项目添加到std::map中。

© www.soinside.com 2019 - 2024. All rights reserved.