Programming, Cpp, Cpp11, Compile Times, Simulation.
it is possible to evaluate the value of the function or variable at compile time. Such variables and functions can then be used where only compile-time constant expressions are allowed. For example, it’s possible to create a constexpr variable and pass it as a function template parameter. The code