|
It’s a well known fact in C++ metaprogramming circles that it’s all based on functional programming. What else is based on functional programming? Haskell! I will go through functional features of Haskell, one by one, and show you how they are implemented using C++ templates. Functions, recursion, pattern matching, higher-order functions, list processing, list comprehension and more… No previous contact with Haskell is required, although some familiarity with C++ templates will be assumed. I’ll also talk about C++0x variadic templates and template parameter packs.
|