acolomitchi / MPinCPP

Exercises and snippets of code in CPP template metaprogramming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MPinCPP

Exercises and snippets of code in CPP template metaprogramming

  1. you should ignore the .cpp files, their content is mainly a commented main function. They've been useful to me in the development of the templates, may contain some snippets of code exercising the templates, definitely do NOT include them in your project (I didn't pay too much attention to the global variables I might have declared and not commented out).
  2. arg_pack_trn.hpp - apply a transformation on each (typename) elements of a template parameter pack one by one and "store" the result as the parameter pack of another template.
  3. replace_type.hpp - the modern solution of the exercise 2.1 of the "C++ Template Metaprogramming" - the replace_type one. (the text of the exercise in comments at the top of the file).

About

Exercises and snippets of code in CPP template metaprogramming


Languages

Language:C++ 100.0%