thrust

◆ swap() [2/6]

template<typename T1 , typename T2 >
__host__ __device__ void thrust::swap ( pair< T1, T2 > &  x,
pair< T1, T2 > &  y 
)
inline

swap swaps the contents of two pairs.

Parameters
xThe first pair to swap.
yThe second pair to swap.