Answers for "parallelize for loop c++"

C++
1

parallelize for loop c++

std::vector<std::string> foo;
std::for_each(
    std::execution::par_unseq,
    foo.begin(),
    foo.end(),
    [](auto&& item)
    {
        //do stuff with item
    });
Posted by: Guest on September-04-2020

Browse Popular Code Answers by Language