We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 471db1d commit 17d17d4Copy full SHA for 17d17d4
thrust/testing/cuda/offset_iterator.cu
@@ -56,7 +56,12 @@ struct device_only_iterator
56
return *this;
57
}
58
59
- _CCCL_DEVICE friend bool operator-(const device_only_iterator& a, const device_only_iterator& b)
+ _CCCL_DEVICE friend device_only_iterator operator+(device_only_iterator it, difference_type d)
60
+ {
61
+ return it += d;
62
+ }
63
+
64
+ _CCCL_DEVICE friend difference_type operator-(const device_only_iterator& a, const device_only_iterator& b)
65
{
66
return a.m_ptr - b.m_ptr;
67
0 commit comments