15 #ifndef __UT_CONCURRENTHASHMAP_H_INCLUDED__
16 #define __UT_CONCURRENTHASHMAP_H_INCLUDED__
20 #include <tbb/concurrent_hash_map.h>
25 #define UT_ConcurrentHashMap tbb::concurrent_hash_map
27 template<
typename K,
typename V,
typename H,
typename A>
36 mem += map.bucket_count()*(
sizeof(intptr_t) +
sizeof(
void *));
39 mem += map.size()*(
sizeof(intptr_t) +
sizeof(
void *) +
sizeof(std::pair<K,V>));
44 #endif // __UT_CONCURRENTHASHMAP_H_INCLUDED__
int64 UTgetMemoryUsage(const UT_ConcurrentHashMap< K, V, H, A > &map, const bool inclusive)