Thrust

◆ operator=() [2/2]

template<typename T>
__host__ __device__ device_ptr& thrust::device_ptr< T >::operator= ( std::nullptr_t  )

Set this device_ptr to null.

Parameters
ptrA null pointer.
Postcondition
get() == nullptr.
Returns
*this.

References thrust::device_pointer_cast().