C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Solution to Exercise 6-0. More...
#include <boost/static_assert.hpp>
#include <boost/mpl/copy.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/placeholders.hpp>
#include <boost/mpl/vector.hpp>
Go to the source code of this file.
Classes | |
struct | exercise_6_0::no_type |
Provide a type to return if the sequence is empty (no "small" type). More... | |
struct | exercise_6_0::find_smaller< T1, T2 > |
Find the type with a smaller size in bytes. More... | |
struct | exercise_6_0::find_smaller< no_type, T2 > |
Specialize the initial case. More... | |
struct | exercise_6_0::replace_with_smaller< State, Operation > |
This is our "inserter." It really just replaces instead of inserting, though. More... | |
struct | exercise_6_0::smallest< S > |
This is the metafunction that returns the smallest type in the sequence. More... | |
Namespaces | |
namespace | exercise_6_0 |
Encapsulate solution for Exercise 6-0. | |
Solution to Exercise 6-0.
Definition in file exercise-6-0.hpp.