thrust::uninitialized_allocate_unique
Defined in thrust/allocate_unique.h
-
template<typename T, typename Allocator>
std::unique_ptr<T, uninitialized_allocator_delete<T, typename detail::allocator_traits<::cuda::std::remove_cvref_t<Allocator>>::template rebind_traits<T>::allocator_type>> thrust::uninitialized_allocate_unique(Allocator const &alloc) Creates a
std::unique_ptr
holding storage for a new object of typeT
without constructing it, usingalloc
as the allocator.