如何有效地将reducers向量中的值复制到另一个向量?
std::vector<cilk::reducer_opadd<int>> v(10000000);
//....
Code that populates the vector v
...//
std::vector<int> res(v.size(), 0);
int i = 0;
for (auto& x : v) res[i++] = x.get_value;
//cilk_for(int i = 0; i < v.size(); ++i) res[i] = v[i].get_value();
是否可以使用SIMD指令更有效地执行上述复制?