7 #ifndef PXR_BASE_WORK_ZERO_ALLOCATOR_H
8 #define PXR_BASE_WORK_ZERO_ALLOCATOR_H
13 #include <type_traits>
16 #include <tbb/cache_aligned_allocator.h>
41 T*
ptr = tbb::cache_aligned_allocator<T>::allocate(n);
42 std::memset(static_cast<void*>(ptr), 0, n *
sizeof(
value_type));
WorkZeroAllocator(const WorkZeroAllocator< U > &) noexcept
WorkZeroAllocator< U > other
T * allocate(std::size_t n)
#define PXR_NAMESPACE_OPEN_SCOPE
WorkZeroAllocator()=default
std::true_type propagate_on_container_move_assignment
#define PXR_NAMESPACE_CLOSE_SCOPE
std::true_type is_always_equal