![]() |
Speeduino
|
Generate a fixed number of calls to a given free function at compile time. More...
#include <static_for.hpp>
Static Public Member Functions | |
| template<typename funcType , typename... Args> | |
| static void | repeat_n (funcType f, Args...args) |
| Unroll, calling a free function. | |
Generate a fixed number of calls to a given free function at compile time.
Usage:
| from | The lower bound |
| to | The upper bound (exclusive) |
Unroll, calling a free function.
| funcType | Function signature (should be automatically deduced) |
| Args | Function argument pack (should be automatically deduced) |
| f | The function to call |
| args | Function arguments in addition to the "loop" index |

