Talk #1672
Template Metaprogramming
Start date:
2015-05-02
Due date:
2015-05-27
% Done:
100%
Estimated time:
Talk Author(s):
Glesaaen, Jonas
Presenter:
Glesaaen, Jonas
Description
One can do much more with C++ templates than most realise, as the template system itself happens to be Touring-complete. Using this language within C++ it is possible to move some executions from runtime to compile time, possibly reducing runtime and moving error checks to take place during compilation.
In this talk we will look at how to use the template system to carry out simple calculations during compilation. We will also scratch the surface of boost's metaprogramming library (MPL) which provides a lot of useful metafunctions and metaclasses to facilitate programming with templates.
Files