="cpf">&lt;taskflow/cuda/algorithm/for_each.hpp&gt;</span></pre></section><section id="ForEachCUDAIndexBasedParallelFor"><h2><a href="#ForEachCUDAIndexBasedParallelFor">Index-based Parallel Iterations</a></h2><p>Index-based parallel-for performs parallel iterations over a range <code>[first, last)</code> with the given <code>step</code> size. The task created by <a href="classtf_1_1cudaFlow.html#a34f1ea89e5651faa6e8af522a42556ac" class="m-doc">tf::<wbr />cudaFlow::<wbr />for_each_index(I first, I last, I st