Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

What is the difference between concurrent_hash_map and concurrent_unordered_map?

Riyad_Parvez
Beginner
1,701 Views

What is the difference between concurrent_hash_map and concurrent_unordered_map?

0 Kudos
1 Reply
MLema2
New Contributor I
1,701 Views

According to documentation:

> The key differences between classes concurrent_unordered_map andconcurrent_hash_map are:

  • concurrent_unordered_map: permits concurrent traversal and insertion, no visible locking, closely resembles the C++11 unordered_map.

  • concurrent_hash_map permits concurrent erasure, built-in locking

0 Kudos
Reply