I currently have a code (in C) with an outer loop that is OpenMP-parallelized (it operates locally on a shared-memory list). I’m rewriting it in C++, and for many things I found the BOOST_FOREACH macro a very nice syntax as loop construct for iterating over a list, array, etc.
My question is: is there a way I can both use that syntax and parallelize the loop OpenMP-style?
Copying from the terminal is worth 1 kilowords: