MySQL 8.3.0
Source Code Documentation
hardware::Loop< iterations > Struct Template Reference

A helper template to statically unroll a loop with a fixed number of iterations, where the iteration number itself is constexpr. More...

Static Public Member Functions

template<typename Step_executor , typename... Args>
static void run (Args &&... args)
 

Detailed Description

template<size_t iterations>
struct hardware::Loop< iterations >

A helper template to statically unroll a loop with a fixed number of iterations, where the iteration number itself is constexpr.

So, instead of:

Something::template run<0>(a,b); Something::template run<1>(a,b); Something::template run<2>(a,b);

you can write:

Loop<3>::template run<Something>(a, b);

Member Function Documentation

◆ run()

template<size_t iterations>
template<typename Step_executor , typename... Args>
static void hardware::Loop< iterations >::run ( Args &&...  args)
inlinestatic

The documentation for this struct was generated from the following file: