Compile time loop evaluation. More...
#include <compileTimeLoop.hpp>
Static Public Member Functions | |
template<typename Func, typename... Args> | |
static inlinevoid | eval (Func &&func, Args &&... args) |
Func is evaluated with args as func(pos, args...) | |
Static Public Attributes | |
static size_t constexpr | end = T_end |
See CompileTimeLoop. | |
static size_t constexpr | pos = T_pos |
See CompileTimeLoop. | |
static int constexpr | step = T_step |
See CompileTimeLoop. | |
Compile time loop evaluation.
step is added to pos until end is reached.
Be careful if step not -1 or 1, the end position needs to be reached directly.
Example:
Called range is: [pos, end)
T_pos | Start value for the loop. |
T_end | End value for the loop. |
T_step | Step value for increment or decrement. |