I want to use OpenMP with iterator pattern. But it says syntax error. Is there some way to get this run with iterator pattern? Don't want to work with indexes.
#pragma omp parallel
{
#pragma omp for
for (Food * thisFood : food){
...
}
}
I want to use OpenMP with iterator pattern. But it says syntax error. Is there some way to get this run with iterator pattern? Don't want to work with indexes.
#pragma omp parallel
{
#pragma omp for
for (Food * thisFood : food){
...
}
}