allendaicool / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

document difference between std::copy and thrust::copy #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Namely, thrust::copy cannot be used to copy overlapping ranges such as
int A[10];
A[0..8] <- A[1..9];

In contrast, std::copy does permit overlapping ranges [1].  Similarly, 
std::copy_backward allows the result range to overlap on the right.

[1] http://www.sgi.com/tech/stl/copy.html
[2] http://www.sgi.com/tech/stl/copy_backward.html

Original issue reported on code.google.com by wnbell on 13 Jul 2010 at 6:22

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 3c1a322bb8.

Original comment by wnbell on 1 Sep 2010 at 7:04