C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Solution to Exercise 5-1. More...
#include <boost/static_assert.hpp>
#include <boost/mpl/begin_end.hpp>
#include <boost/mpl/deref.hpp>
#include <boost/mpl/equal.hpp>
#include <boost/mpl/greater_equal.hpp>
#include <boost/mpl/push_back.hpp>
#include <boost/mpl/times.hpp>
#include <boost/mpl/vector_c.hpp>
Go to the source code of this file.
Classes | |
class | exercise_5_1::double_first_half_impl< S, Res, Cur > |
Represents a single iteration across the sequence. More... | |
struct | exercise_5_1::double_first_half< S > |
Double the values in the first half of the given sequence. More... | |
Namespaces | |
namespace | exercise_5_1 |
Encapsulate solution for Exercise 5-1. | |
Solution to Exercise 5-1.
Definition in file exercise-5-1.hpp.