This C++17 snippet would works fine in newer versions of G++
std::for_each(std::execution::par_unseq, container.begin(