Lecture 6 - Slide 39 : 40 |
Compile Time iteration takes place via recursion
There is no variable state at compile time
Iterative control structures are therefore not applicable
![]() | The factorial function defined as a function template - using a template int parameter. |
![]() | The factorial function programmed in struct - with recursion. |