thrust

◆ device_pointer_cast() [1/2]

template<typename T >
__host__ __device__ device_ptr<T> thrust::device_pointer_cast ( T *  ptr)
inline

device_pointer_cast creates a device_ptr from a raw pointer which is presumed to point to a location in device memory.

Parameters
ptrA raw pointer, presumed to point to a location in device memory.
Returns
A device_ptr wrapping ptr.

Referenced by thrust::device_ptr< T >::operator=().