Skip to content

Function counter

function counter(T) base

template <typename T = int, typename Tout = T>
KFR_INTRINSIC expression_counter<Tout, 1> counter(T start = 0)

Creates a 1-D expression_counter with step 1.

Template parameters
T integer value type (defaults to int )
Tout output value type (defaults to T)
Parameters
start starting value of the counter
Returns
an expression_counter producing start, start+1, start+2, ...

Fully qualified name: kfr::counter(T)

Function counter

function counter(T, Arg, Args...) base

template <typename T = int, typename Arg = T, typename... Args,
          typename Tout = std::common_type_t<T, Arg, Args...>>
KFR_INTRINSIC expression_counter<Tout, 1 + sizeof...(Args)> counter(T start, Arg step, Args... steps)

Creates an N-dimensional expression_counter with one step per dimension.

Template parameters
T integer value type of start
Arg type of the first step
Args types of the remaining steps
Tout common value type used in the resulting expression
Parameters
start starting value
step step for the first dimension
steps steps for the remaining dimensions
Returns
an expression_counter

Fully qualified name: kfr::counter(T, Arg, Args...)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.