![]() |
OpenWalnut
1.5.0dev
|
Compute the nth power of a value. More...
#include <WCompileTimeFunctions.h>
Public Types | |
| enum | { value = base * WPower< base, exponent - 1 >::value } |
| Using an enum here instead of a static constant. More... | |
Compute the nth power of a value.
For base == exponent == 0, compilation fails.
Definition at line 131 of file WCompileTimeFunctions.h.
| anonymous enum |
Using an enum here instead of a static constant.
| Enumerator | |
|---|---|
| value | The computed value. |
Definition at line 136 of file WCompileTimeFunctions.h.