]> git.sesse.net Git - casparcg/blobdiff - tbb/include/tbb/concurrent_unordered_map.h
2.0. Updated tbb library.
[casparcg] / tbb / include / tbb / concurrent_unordered_map.h
index ff13c2a40c5094fc57ca80b8cb62af3f3e3b2d14..e14fad0b5b371f486b578606c2c799f8f36fe082 100644 (file)
 #ifndef __TBB_concurrent_unordered_map_H
 #define __TBB_concurrent_unordered_map_H
 
-#include "_concurrent_unordered_internal.h"
+#include "internal/_concurrent_unordered_impl.h"
 
 namespace tbb
 {
 
-// Template class for hash compare
-template<typename Key>
-class tbb_hash
-{
-public:
-    tbb_hash() {}
-
-    size_t operator()(const Key& key) const
-    {
-        return tbb_hasher(key);
-    }
-};
-
 namespace interface5 {
 
 // Template class for hash map traits
@@ -90,7 +77,7 @@ protected:
     hash_compare my_hash_compare; // the comparator predicate for keys
 };
 
-template <typename Key, typename T, typename Hasher = tbb_hash<Key>, typename Key_equality = std::equal_to<Key>, typename Allocator = tbb::tbb_allocator<std::pair<const Key, T> > >
+template <typename Key, typename T, typename Hasher = tbb::tbb_hash<Key>, typename Key_equality = std::equal_to<Key>, typename Allocator = tbb::tbb_allocator<std::pair<const Key, T> > >
 class concurrent_unordered_map : public internal::concurrent_unordered_base< concurrent_unordered_map_traits<Key, T, internal::hash_compare<Key, Hasher, Key_equality>, Allocator, false> >
 {
     // Base type definitions