C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Rewrite twice as a lambda. More...
Files | |
file | exercise-3-6.hpp |
Solution to Exercise 3-6. | |
Namespaces | |
namespace | exercise_3_6 |
Encapsulate solution for Exercise 3-6. | |
Rewrite twice as a lambda.
3-6. Build a lambda expression that has functionality equivalent to twice. Hint: mpl::apply is a metafunction!