Thrust

◆ swap() [4/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.

Referenced by thrust::device_vector< T, Alloc >::device_vector().