C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches

Transform a vector by adding 1 to all its elements. More...

Files

file  exercise-3-1.hpp
 Solution to Exercise 3-1.
 

Namespaces

namespace  test_3_1
 Tests functionality from Exercise 3-1.
 
namespace  exercise_3_1
 Encapsulate solution for Exercise 3-1.
 

Detailed Description

Transform a vector by adding 1 to all its elements.

3-1. Turn vector_c<int,1,2,3> into a type sequence with elements (2,3,4)
     using transform.