For example: double comp(vector<double>& v) // spawn many tasks { auto b = v.begin(); auto sz = v.size(); auto f0 = std::async(std::accumulate, b, b+sz/4, ...
確定! 回上一頁