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(
)# Creates a
std::unique_ptrholding an array of objects of typeT, each one constructed withargs, usingallocas the allocator.