thrust::swap

Defined in thrust/host_vector.h

template<typename T, typename Alloc>
void thrust::swap(host_vector<T, Alloc> &a, host_vector<T, Alloc> &b)

Exchanges the values of two vectors. x The first host_vector of interest. y The second host_vector of interest.