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 first device_vector of interest. y The second device_vector of interest.