thrust

◆ swap() [5/6]

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.