thrust

◆ swap() [4/6]

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.