- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
While I was replacing an std::unordered_set with a tbb::concurrent_unordered_set, it occurs to me that Key need to be DefaultConstructible for tbb, while std doesn't require it. Is it normal? Maybe I missed something in the documentation, but I don't want my type to be DefaultConstructible (and it would be very cumbersome to change this).
In the meantime, I tried with aconcurrent_hash_map, which doesn't seem to require Key to be DefaultConstructible. Besides thread-safe erasing, are there any difference between those two containers?
Thanks!
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page