@@ -64,8 +64,8 @@ CUB_NAMESPACE_BEGIN
64
64
* indices (forming \p KeyValuePair tuples).
65
65
*
66
66
* @par Overview
67
- * - ArgIndexInputIteratorTwraps a random access input iterator @p itr of type @p InputIteratorT.
68
- * Dereferencing an ArgIndexInputIteratorTat offset @p i produces a @p KeyValuePair value whose
67
+ * - ArgIndexInputIterator wraps a random access input iterator @p itr of type @p InputIteratorT.
68
+ * Dereferencing an ArgIndexInputIterator at offset @p i produces a @p KeyValuePair value whose
69
69
* @p key field is @p i and whose @p value field is <tt>itr[i]</tt>.
70
70
* - Can be used with any data type.
71
71
* - Can be constructed, manipulated, and exchanged within and between host and device
@@ -74,7 +74,7 @@ CUB_NAMESPACE_BEGIN
74
74
* - Compatible with Thrust API v1.7 or newer.
75
75
*
76
76
* @par Snippet
77
- * The code snippet below illustrates the use of @p ArgIndexInputIteratorTto
77
+ * The code snippet below illustrates the use of @p ArgIndexInputIterator to
78
78
* dereference an array of doubles
79
79
* @par
80
80
* @code
@@ -87,17 +87,16 @@ CUB_NAMESPACE_BEGIN
87
87
* cub::ArgIndexInputIterator<double*> itr(d_in);
88
88
*
89
89
* // Within device code:
90
- * using Tuple = typename cub::ArgIndexInputIterator<double*>::value_type;
91
- * Tuple item_offset_pair.key = *itr;
92
- * printf("%f @ %d\n",
93
- * item_offset_pair.value,
94
- * item_offset_pair.key); // 8.0 @ 0
90
+ * cub::ArgIndexInputIterator<double*>::value_type tup = *itr;
91
+ * printf("%f @ %ld\n",
92
+ * tup.value,
93
+ * tup.key); // 8.0 @ 0
95
94
*
96
95
* itr = itr + 6;
97
- * item_offset_pair.key = *itr;
98
- * printf("%f @ %d \n",
99
- * item_offset_pair .value,
100
- * item_offset_pair .key); // 9.0 @ 6
96
+ * tup = *itr;
97
+ * printf("%f @ %ld \n",
98
+ * tup .value,
99
+ * tup .key); // 9.0 @ 6
101
100
*
102
101
* @endcode
103
102
*
0 commit comments