15 #ifndef __UT_CONCURRENTSET_H_INCLUDED__
16 #define __UT_CONCURRENTSET_H_INCLUDED__
20 #include <hboost/container_hash/hash.hpp>
21 #include <oneapi/tbb/concurrent_unordered_set.h>
28 typename H = hboost::hash<K>,
29 typename P = std::equal_to<K>,
30 typename A = tbb::tbb_allocator<K>
35 template<
typename K,
typename H,
typename E,
typename A>
44 mem += set.bucket_count()*(
sizeof(intptr_t) +
sizeof(
void *));
47 mem += set.size()*(
sizeof(intptr_t) +
sizeof(
void *) +
sizeof(K));
52 #endif // __UT_CONCURRENTSET_H_INCLUDED__
int64 UTgetMemoryUsage(const UT_ConcurrentSet< K, H, E, A > &set, const bool inclusive)
GA_API const UT_StringHolder P
constexpr auto set(type rhs) -> int
STATIC_INLINE uint64_t H(uint64_t x, uint64_t y, uint64_t mul, int r)
tbb::concurrent_unordered_set< K, H, P, A > UT_ConcurrentSet