thrust

◆ allocate()

template<typename T, class MR>
__host__ pointer thrust::mr::allocator< T, MR >::allocate ( size_type  n)
inline

Allocates objects of type T.

Parameters
nnumber of elements to allocate
Returns
a pointer to the newly allocated storage.