|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Square all elements in a sequence. More...
Files | |
| file | exercise-3-2.hpp |
| Solution to Exercise 3-2. | |
Namespaces | |
| namespace | test_3_2 |
| Tests functionality from Exercise 3-2. | |
| namespace | exercise_3_2 |
| Encapsulate solution for Exercise 3-2. | |
Square all elements in a sequence.
3-2. Turn vector_c<int,1,2,3> into a type sequence with elements (1,4,9)
using transform.