thrust::swap
Defined in thrust/device_vector.h
-
template<typename T, typename Alloc>
void thrust::swap(device_vector<T, Alloc> &a, device_vector<T, Alloc> &b) Exchanges the values of two vectors.
x
The firstdevice_vector
of interest.y
The seconddevice_vector
of interest.