| 122 | } |
| 123 | |
| 124 | __host__ __device__ |
| 125 | void swap(DevicePointer<T>& rhs) throw() |
| 126 | { |
| 127 | std::swap(pointer_, rhs.pointer_); |
| 128 | std::swap(counter_, rhs.counter_); |
| 129 | std::swap(context_, rhs.context_); |
| 130 | } |
| 131 | |
| 132 | __host__ __device__ |
| 133 | ~DevicePointer() |