thrust::uninitialized_allocate_unique_n
Defined in thrust/allocate_unique.h
-
template<typename T, typename Allocator, typename Size>
std::unique_ptr<T[], uninitialized_array_allocator_delete<T, typename detail::allocator_traits<::cuda::std::remove_cvref_t<Allocator>>::template rebind_traits<T>::allocator_type>> thrust::uninitialized_allocate_unique_n(Allocator const &alloc, Size n) Creates a
std::unique_ptr
holding storage for an array of objects of typeT
without constructing them, usingalloc
as the allocator.