Lines Matching refs:range
39 // Indicate if the range is empty
44 // Indicate if the range can be divided
51 // Performed an action for each element of the range,
64 * The ``StrideRange`` class models oneTBB range that should be iterated with a specified stride dur…
65 * The ``stride`` value is stored in a private field within the range. Therefore, the class provides…
67 ``range.iterate()``
70 …range in a parallel algorithm, such as ``parallel_for``, it was required to provide a ``Function O…
79 StrideRange range(array_to_iterate, array_size, /* stride = */ 2);
82 auto pfor_body = [] (const StrideRange& range) {
83 range.iterate();
87 oneapi::tbb::parallel_for(range, pfor_body);
94 Now with C++17, you can directly utilize a pointer to ``range.iterate()`` as the body of the algori…
104 StrideRange range(array_to_iterate, array_size, /* stride = */ 2);
106 // Parallelize the iteration over the range object
107 oneapi::tbb::parallel_for(range, &StrideRange::iterate);
117 …function ``std::invoke(&StrideRange::iterate, range)`` to execute the body. It is the equivalent o…