Lecture 6 - Slide 39 : 40
Compile Time iteration

Compile Time iteration takes place via recursion

There is no variable state at compile time

Iterative control structures are therefore not applicable

fac-1.cc
The factorial function defined as a constexpr function (C++11).
fac-2.cc
The factorial function defined as a function template - using a template int parameter.
fac-3.cc
The factorial function programmed in struct - with recursion.