- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It would be helpful for c++11 users that TBB provide it's implementation of hashing for std::type_index, so that it can be used as index in tbb::concurrent_unordered_map for example.
Here is the implementation I'm using in one project:
namespace tbb
{
template<>
size_t tbb_hasher( const std::type_index& idx )
{
return std::hash<:TYPE_INDEX>()( idx );
}
}
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