@@ -73,7 +73,7 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
7373 :Parent() {}
7474
7575 /* ! This constructor creates an empty \p device_vector.
76- * \param alloc The allocator to use by this vector_base .
76+ * \param alloc The allocator to use by this device_vector .
7777 */
7878 __host__
7979 device_vector (const Alloc &alloc)
@@ -97,7 +97,7 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
9797 /* ! This constructor creates a \p device_vector with the given
9898 * size.
9999 * \param n The number of elements to initially create.
100- * \param alloc The allocator to use by this vector_base .
100+ * \param alloc The allocator to use by this device_vector .
101101 */
102102 __host__
103103 explicit device_vector (size_type n, const Alloc &alloc)
@@ -116,7 +116,7 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
116116 * of an exemplar element.
117117 * \param n The number of elements to initially create.
118118 * \param value An element to copy.
119- * \param alloc The allocator to use by this vector_base .
119+ * \param alloc The allocator to use by this device_vector .
120120 */
121121 __host__
122122 explicit device_vector (size_type n, const value_type &value, const Alloc &alloc)
@@ -131,7 +131,7 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
131131
132132 /* ! Copy constructor copies from an exemplar \p device_vector.
133133 * \param v The \p device_vector to copy.
134- * \param alloc The allocator to use by this vector_base .
134+ * \param alloc The allocator to use by this device_vector .
135135 */
136136 __host__
137137 device_vector (const device_vector &v, const Alloc &alloc)
@@ -147,7 +147,7 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
147147
148148 /* ! Move constructor moves from another \p device_vector.
149149 * \param v The device_vector to move.
150- * \param alloc The allocator to use by this vector_base .
150+ * \param alloc The allocator to use by this device_vector .
151151 */
152152 __host__
153153 device_vector (device_vector &&v, const Alloc &alloc)
@@ -230,7 +230,7 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
230230 /* ! This constructor builds a \p device_vector from a range.
231231 * \param first The beginning of the range.
232232 * \param last The end of the range.
233- * \param alloc The allocator to use by this vector_base .
233+ * \param alloc The allocator to use by this device_vector .
234234 */
235235 template <typename InputIterator>
236236 __host__
@@ -427,7 +427,7 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
427427 */
428428 void pop_back(void);
429429
430- /*! This method swaps the contents of this vector_base with another vector.
430+ /*! This method swaps the contents of this device_vector with another vector.
431431 * \param v The vector with which to swap.
432432 */
433433 void swap(device_vector &v);
@@ -498,6 +498,10 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
498498#endif // end doxygen-only members
499499}; // end device_vector
500500
501+ /* ! Exchanges the values of two vectors.
502+ * \p x The first \p device_vector of interest.
503+ * \p y The second \p device_vector of interest.
504+ */
501505template <typename T, typename Alloc>
502506 void swap (device_vector<T,Alloc> &a, device_vector<T,Alloc> &b)
503507{
0 commit comments