Thrust

◆ swap() [6/6]

template<typename T >
__host__ __device__ void thrust::swap ( device_reference< T > &  x,
device_reference< T > &  y 
)

swaps the value of one device_reference with another. x The first device_reference of interest. y The second device_reference of interest.

Referenced by thrust::device_reference< T >::operator=(), thrust::optional< T >::swap(), and thrust::optional< T & >::swap().