Commit e3f7439
committed
Use capture initialization to avoid unnecessary copy of vector of shared_ptr
Since the vector is no longer used after it is captured by the lambda submitted
via cgh.host_task, it should be moved rather than copied for efficiency.1 parent 9f8f90b commit e3f7439
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
0 commit comments