@@ -84,12 +84,12 @@ namespace thrust
8484 * #include <thrust/set_operations.h>
8585 * #include <thrust/execution_policy.h>
8686 * ...
87- * int A1[6 ] = {0, 1, 3, 4, 5, 6, 9};
87+ * int A1[7 ] = {0, 1, 3, 4, 5, 6, 9};
8888 * int A2[5] = {1, 3, 5, 7, 9};
8989 *
9090 * int result[3];
9191 *
92- * int *result_end = thrust::set_difference(thrust::host, A1, A1 + 6 , A2, A2 + 5, result);
92+ * int *result_end = thrust::set_difference(thrust::host, A1, A1 + 7 , A2, A2 + 5, result);
9393 * // result is now {0, 4, 6}
9494 * \endcode
9595 *
@@ -157,12 +157,12 @@ __host__ __device__
157157 * \code
158158 * #include <thrust/set_operations.h>
159159 * ...
160- * int A1[6 ] = {0, 1, 3, 4, 5, 6, 9};
160+ * int A1[7 ] = {0, 1, 3, 4, 5, 6, 9};
161161 * int A2[5] = {1, 3, 5, 7, 9};
162162 *
163163 * int result[3];
164164 *
165- * int *result_end = thrust::set_difference(A1, A1 + 6 , A2, A2 + 5, result);
165+ * int *result_end = thrust::set_difference(A1, A1 + 7 , A2, A2 + 5, result);
166166 * // result is now {0, 4, 6}
167167 * \endcode
168168 *
@@ -232,12 +232,12 @@ template<typename InputIterator1,
232232 * #include <thrust/functional.h>
233233 * #include <thrust/execution_policy.h>
234234 * ...
235- * int A1[6 ] = {9, 6, 5, 4, 3, 1, 0};
235+ * int A1[7 ] = {9, 6, 5, 4, 3, 1, 0};
236236 * int A2[5] = {9, 7, 5, 3, 1};
237237 *
238238 * int result[3];
239239 *
240- * int *result_end = thrust::set_difference(thrust::host, A1, A1 + 6 , A2, A2 + 5, result, thrust::greater<int>());
240+ * int *result_end = thrust::set_difference(thrust::host, A1, A1 + 7 , A2, A2 + 5, result, thrust::greater<int>());
241241 * // result is now {6, 4, 0}
242242 * \endcode
243243 *
@@ -306,12 +306,12 @@ __host__ __device__
306306 * #include <thrust/set_operations.h>
307307 * #include <thrust/functional.h>
308308 * ...
309- * int A1[6 ] = {9, 6, 5, 4, 3, 1, 0};
309+ * int A1[7 ] = {9, 6, 5, 4, 3, 1, 0};
310310 * int A2[5] = {9, 7, 5, 3, 1};
311311 *
312312 * int result[3];
313313 *
314- * int *result_end = thrust::set_difference(A1, A1 + 6 , A2, A2 + 5, result, thrust::greater<int>());
314+ * int *result_end = thrust::set_difference(A1, A1 + 7 , A2, A2 + 5, result, thrust::greater<int>());
315315 * // result is now {6, 4, 0}
316316 * \endcode
317317 *
@@ -717,12 +717,12 @@ template<typename InputIterator1,
717717 * #include <thrust/set_operations.h>
718718 * #include <thrust/execution_policy.h>
719719 * ...
720- * int A1[6 ] = {0, 1, 2, 2, 4, 6, 7};
720+ * int A1[7 ] = {0, 1, 2, 2, 4, 6, 7};
721721 * int A2[5] = {1, 1, 2, 5, 8};
722722 *
723723 * int result[6];
724724 *
725- * int *result_end = thrust::set_symmetric_difference(thrust::host, A1, A1 + 6 , A2, A2 + 5, result);
725+ * int *result_end = thrust::set_symmetric_difference(thrust::host, A1, A1 + 7 , A2, A2 + 5, result);
726726 * // result = {0, 4, 5, 6, 7, 8}
727727 * \endcode
728728 *
@@ -794,12 +794,12 @@ __host__ __device__
794794 * \code
795795 * #include <thrust/set_operations.h>
796796 * ...
797- * int A1[6 ] = {0, 1, 2, 2, 4, 6, 7};
797+ * int A1[7 ] = {0, 1, 2, 2, 4, 6, 7};
798798 * int A2[5] = {1, 1, 2, 5, 8};
799799 *
800800 * int result[6];
801801 *
802- * int *result_end = thrust::set_symmetric_difference(A1, A1 + 6 , A2, A2 + 5, result);
802+ * int *result_end = thrust::set_symmetric_difference(A1, A1 + 7 , A2, A2 + 5, result);
803803 * // result = {0, 4, 5, 6, 7, 8}
804804 * \endcode
805805 *
@@ -875,12 +875,12 @@ template<typename InputIterator1,
875875 * #include <thrust/set_operations.h>
876876 * #include <thrust/execution_policy.h>
877877 * ...
878- * int A1[6 ] = {7, 6, 4, 2, 2, 1, 0};
878+ * int A1[7 ] = {7, 6, 4, 2, 2, 1, 0};
879879 * int A2[5] = {8, 5, 2, 1, 1};
880880 *
881881 * int result[6];
882882 *
883- * int *result_end = thrust::set_symmetric_difference(thrust::host, A1, A1 + 6 , A2, A2 + 5, result);
883+ * int *result_end = thrust::set_symmetric_difference(thrust::host, A1, A1 + 7 , A2, A2 + 5, result);
884884 * // result = {8, 7, 6, 5, 4, 0}
885885 * \endcode
886886 *
@@ -955,12 +955,12 @@ __host__ __device__
955955 * \code
956956 * #include <thrust/set_operations.h>
957957 * ...
958- * int A1[6 ] = {7, 6, 4, 2, 2, 1, 0};
958+ * int A1[7 ] = {7, 6, 4, 2, 2, 1, 0};
959959 * int A2[5] = {8, 5, 2, 1, 1};
960960 *
961961 * int result[6];
962962 *
963- * int *result_end = thrust::set_symmetric_difference(A1, A1 + 6 , A2, A2 + 5, result);
963+ * int *result_end = thrust::set_symmetric_difference(A1, A1 + 7 , A2, A2 + 5, result);
964964 * // result = {8, 7, 6, 5, 4, 0}
965965 * \endcode
966966 *
0 commit comments