cuda::experimental::stf::each

Defined in include/cuda/experimental/__stf/utility/core.cuh

template<typename T, typename U>
auto cuda::experimental::stf::each(T from, U to)

Create an iterable range from ‘from’ to ‘to’.

Note

The range includes ‘from’ and excludes ‘to’. The actual type iterated is determined as the type of the expression true ? from : to. This ensures expected behavior for iteration with different from and to types.

Template Parameters
  • T – The type of the start range value

  • U – The type of the end range value

Parameters
  • from – The start value of the range

  • to – The end value of the range

Returns

A range of values from ‘from’ to ‘to’