Intel TBB 提供高并发的容器类,Windows或者Linux线程能使用这些容器类或者和基于task编程相结合(TBB)。
concurrent_hash_map<Key,T,HashCompare>是一个hash表,允许并行访问,表是一个从Key到类型T的映射,类型HashCompare定义怎样hash一个Key和怎样比较2个Key。
concurrent_hash_map
is a class template for an unordered associative container that holds key-value pairs with unique keys and supports concurrent insertion, lookup, and erasure.
文档
concurrent_hash_map — oneAPI Specification 1.0-rev-3 documentation