Skip to content

Commit f09cde3

Browse files
authored
Merge pull request NVIDIA#1384 from allisonvacanti/1342_gather_docs
Add precondition to gather documentation.
2 parents 2b3d646 + 7bd406b commit f09cde3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

thrust/gather.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ namespace thrust
5353
* \tparam OutputIterator must be a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
5454
*
5555
* \pre The range <tt>[map_first, map_last)</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
56+
* \pre The input data shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
5657
*
5758
* \remark \p gather is the inverse of thrust::scatter.
5859
*
@@ -108,6 +109,7 @@ __host__ __device__
108109
* \tparam OutputIterator must be a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
109110
*
110111
* \pre The range <tt>[map_first, map_last)</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
112+
* \pre The input data shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
111113
*
112114
* \remark \p gather is the inverse of thrust::scatter.
113115
*
@@ -166,6 +168,7 @@ template<typename InputIterator,
166168
*
167169
* \pre The range <tt>[map_first, map_last)</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
168170
* \pre The range <tt>[stencil, stencil + (map_last - map_first))</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
171+
* \pre The input data shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
169172
*
170173
* \remark \p gather_if is the inverse of \p scatter_if.
171174
*
@@ -232,6 +235,7 @@ __host__ __device__
232235
*
233236
* \pre The range <tt>[map_first, map_last)</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
234237
* \pre The range <tt>[stencil, stencil + (map_last - map_first))</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
238+
* \pre The input data shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
235239
*
236240
* \remark \p gather_if is the inverse of \p scatter_if.
237241
*
@@ -299,6 +303,7 @@ template<typename InputIterator1,
299303
*
300304
* \pre The range <tt>[map_first, map_last)</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
301305
* \pre The range <tt>[stencil, stencil + (map_last - map_first))</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
306+
* \pre The input data shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
302307
*
303308
* \remark \p gather_if is the inverse of \p scatter_if.
304309
*
@@ -379,6 +384,7 @@ __host__ __device__
379384
*
380385
* \pre The range <tt>[map_first, map_last)</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
381386
* \pre The range <tt>[stencil, stencil + (map_last - map_first))</tt> shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
387+
* \pre The input data shall not overlap the range <tt>[result, result + (map_last - map_first))</tt>.
382388
*
383389
* \remark \p gather_if is the inverse of \p scatter_if.
384390
*

0 commit comments

Comments
 (0)