SimGrid  3.21
Versatile Simulation of Distributed Systems

Parallel map.

A function is applied to all elements of a std::vector in parallel with n worker threads. The worker threads are persistent until the destruction of the parmap.

If there are more than n elements in the vector, the worker threads are allowed to fetch themselves remaining work with method next() and execute it.