Project

General

Profile

Talk #1672

Template Metaprogramming

Added by Kretz, Matthias almost 9 years ago. Updated almost 9 years ago.

Status:
Presented
Priority:
Normal
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

template_meta_programming.pdf (284 KB) template_meta_programming.pdf Slides used in the presentation Glesaaen, Jonas, 2015-05-27 16:21
template_meta_programming_w_notes.pdf (297 KB) template_meta_programming_w_notes.pdf Handout with presentation notes Glesaaen, Jonas, 2015-05-27 16:21
#1

Updated by Glesaaen, Jonas almost 9 years ago

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.

#2

Updated by Glesaaen, Jonas almost 9 years ago

  • Description updated (diff)
#3

Updated by Kretz, Matthias almost 9 years ago

  • Status changed from New to Presented

Also available in: Atom PDF