thrust

◆ device_pointer_cast() [2/2]

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

This version of device_pointer_cast creates a copy of a device_ptr from another device_ptr. This version is included for symmetry with raw_pointer_cast.

Parameters
ptrA device_ptr.
Returns
A copy of ptr.