thrust::swap
Defined in thrust/device_reference.h
-
template<typename T>
void thrust::swap(device_reference<T> x, device_reference<T> y) noexcept(noexcept(x.swap(y))) swaps the value of one
device_reference
with another.x
The firstdevice_reference
of interest.y
The seconddevice_reference
of interest.