12 #ifndef __UT_CONCURRENTVECTOR_H_INCLUDED__
13 #define __UT_CONCURRENTVECTOR_H_INCLUDED__
18 #include <tbb/concurrent_vector.h>
23 #define UT_ConcurrentVector tbb::concurrent_vector
25 template<
typename T,
typename A>
29 int64 mem = inclusive ?
sizeof(that) : 0;
32 mem += that.capacity() *
sizeof(
T);
37 if (that.capacity() > 8)
38 mem += SYSceilLog2(that.capacity()) *
sizeof(
void*);
43 #endif // __UT_CONCURRENTVECTOR_H_INCLUDED__
int64 UTgetMemoryUsage(const UT_ConcurrentVector< T, A > &that, bool inclusive)