C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
▼ chapter-1 | |
▼ c++20 | |
c++20/chapter-1.cpp | Test application for Chapter 1 (C++20) |
chapter-1.cpp | Test application for Chapter 1 |
▼ chapter-2 | |
▼ c++20 | |
c++20/exercise-2-1.hpp | Solution to Exercise 2-1 (C++20) |
c++20/exercise-2-2.hpp | Solution to Exercise 2-2 (C++20) |
c++20/exercise-2-4.hpp | Solution to Exercise 2-4 (C++20) |
c++20/exercise-2-5.hpp | Solution to Exercise 2-5 (C++20) |
chapter-2.cpp | Test application for Chapter 2 |
exercise-2-0.hpp | Solution to Exercise 2-0 |
exercise-2-1.hpp | Solution to Exercise 2-1 |
exercise-2-2.hpp | Solution to Exercise 2-2 |
exercise-2-3.hpp | Solution to Exercise 2-3 |
exercise-2-4.hpp | Solution to Exercise 2-4 |
exercise-2-5.hpp | Solution to Exercise 2-5 |
▼ chapter-3 | |
▼ c++20 | |
c++20/exercise-3-0.hpp | Solution to Exercise 3-0 (C++20) |
chapter-3-twice.hpp | Define the twice metafunction for use in multiple exercises |
chapter-3.cpp | Test application for Chapter 3 |
exercise-3-0.hpp | Solution to Exercise 3-0 |
exercise-3-1.hpp | Solution to Exercise 3-1 |
exercise-3-2.hpp | Solution to Exercise 3-2 |
exercise-3-3.hpp | Solution to Exercise 3-3 |
exercise-3-4.hpp | Solution to Exercise 3-4 |
exercise-3-5.hpp | Solution to Exercise 3-5 |
exercise-3-6.hpp | Solution to Exercise 3-6 |
▼ chapter-4 | |
chapter-4-undefined_bool.hpp | Define some booleans that don't compile on either true or false |
chapter-4.cpp | Test application for Chapter 4 |
exercise-4-0.hpp | Solution to Exercise 4-0 |
exercise-4-1.hpp | Solution to Exercise 4-1 |
exercise-4-2.hpp | Solution to Exercise 4-2 |
exercise-4-3.hpp | Solution to Exercise 4-3 |
exercise-4-4.hpp | Solution to Exercise 4-4 |
exercise-4-5.hpp | Solution to Exercise 4-5 |
▼ chapter-5 | |
chapter-5-tiny.hpp | Define a tiny sequence with modifications from examples in Chapter 5 |
chapter-5-tree.hpp | Define a binary tree structure for future exercises |
chapter-5.cpp | Test application for Chapter 5 |
exercise-5-1.hpp | Solution to Exercise 5-1 |
exercise-5-10.hpp | Solution to Exercise 5-10 |
exercise-5-6.hpp | Solution to Exercise 5-6 |
exercise-5-7.hpp | Solution to Exercise 5-7 |
exercise-5-8.hpp | Solution to Exercise 5-8 |
exercise-5-9.hpp | Solution to Exercise 5-9 |
▼ chapter-6 | |
chapter-6-tree.hpp | Augment the chapter5::tree sequence API to allow addition of elements |
chapter-6.cpp | Test application for Chapter 6 |
exercise-6-0.hpp | Solution to Exercise 6-0 |
exercise-6-1.hpp | Solution to Exercise 6-1 |
exercise-6-3.hpp | Solution to Exercise 6-3 |
exercise-6-4.hpp | Solution to Exercise 6-4 |
▼ chapter-7 | |
chapter-7-permutation_view.hpp | Defines a view of a sequence that appears to alter the elements' order |
chapter-7-zip_view.hpp | "Zip" corresponding elements of N arrays into a sequence of N-length subsequences |
chapter-7.cpp | Test application for Chapter 7 |
exercise-7-0.hpp | Solution to Exercise 7-0 |
exercise-7-2.hpp | Solution to Exercise 7-2 |
exercise-7-3.hpp | Solution to Exercise 7-3 |
exercise-7-7.hpp | Solution to Exercise 7-7 |
main.hpp | This file exists as a home for generated documentation |