The example given in the docs is
taskflow.for_each_index(0, 100, 2, [](int i) { }); // 50 loops with a + step
which represents
for(size_t i = 0; i<100;i+=1){}
but how to do a nested loop given that the callback for for_each_index does not pass a subflow object in?
for(size_t i = 0; i<5;i+=1){
for(size_t j = 0; i < 100; j+=1){
someTask(i,j);
}
}
The example given in the docs is
which represents
but how to do a nested loop given that the callback for
for_each_indexdoes not pass a subflow object in?