cuda::experimental::stf::each
#
Overloads#
each(from, to)
#
-
template<typename T, typename U>
auto cuda::experimental::stf::each(
) 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 differentfrom
andto
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’
each(to)
#
-
template<typename T>
auto cuda::experimental::stf::each(T to) Create an iterable range from
T(0)
toto
Note
The range includes 0 and excludes
to
- Template Parameters:
T – The type of the end range value
- Parameters:
to – The end value of the range
- Returns:
A range of values from
T(0)
toto