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 firsthost_vector
of interest.y
The secondhost_vector
of interest.