Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Template metaprogramming is a technique to perform calculations during compiling only.
There is no semantic difference between class and typename in a template-parameter [1].
Below is an example to calculate the factorial of an ( unsigned) integer during compile-time. So when the program starts to run, all factorials are already calculated.
Other examples:
Operating system(s) or programming environment(s)
Libraries used:
TEMPLATE = app |
template <bool> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
This page has been created by the tool CodeToHtml