thrust::swap#
-
template<typename T>
void thrust::swap( - device_reference<T> x,
- device_reference<T> y
swaps the value of one
device_referencewith another.xThe firstdevice_referenceof interest.yThe seconddevice_referenceof interest.Added in version 2.2.0.