|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Solution to Exercise 4-3. More...
#include <boost/static_assert.hpp>#include <boost/mpl/apply.hpp>#include <boost/mpl/if.hpp>#include <boost/mpl/greater.hpp>#include <boost/mpl/identity.hpp>#include <boost/mpl/minus.hpp>#include <boost/mpl/multiplies.hpp>#include <boost/mpl/not_equal_to.hpp>#include <boost/mpl/plus.hpp>#include <boost/mpl/placeholders.hpp>Go to the source code of this file.
Classes | |
| struct | exercise_4_3::next_if< N, Predicate > |
| Fix algorithm 1 in Exercise 4-3: More... | |
| struct | exercise_4_3::formula< N1, N2 > |
| Fix algorithm 2 in Exercise 4-3: More... | |
Namespaces | |
| namespace | exercise_4_3 |
| Encapsulate solution for Exercise 4-3. | |
Solution to Exercise 4-3.
Definition in file exercise-4-3.hpp.