thrust::allocate_unique_n#

template<typename T, typename Allocator, typename Size, typename ...Args>
std::unique_ptr<T[], array_allocator_delete<T, typename ::cuda::std::allocator_traits<::cuda::std::remove_cvref_t<Allocator>>::template rebind_traits<T>::allocator_type>> thrust::allocate_unique_n(
Allocator const &alloc,
Size n,
Args&&... args
)#

Creates a std::unique_ptr holding an array of objects of type T, each one constructed with args, using alloc as the allocator.