|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Solution to Exercise 4-1. More...
#include "chapter-4-undefined_bool.hpp"#include <boost/static_assert.hpp>#include <boost/mpl/bool.hpp>Go to the source code of this file.
Classes | |
| struct | exercise_4_1::logical_or< E1, E2 > |
| Short-circuit logical OR evaluation of two boolean values. More... | |
| struct | exercise_4_1::logical_or< boost::mpl::true_, E2 > |
| Short-circuit on a true value. More... | |
| struct | exercise_4_1::logical_or< boost::mpl::false_, E2 > |
| If the first value is false, the result is whatever E2's value is. More... | |
| struct | exercise_4_1::logical_and< E1, E2 > |
| Short-circuit logical OR evaluation of two boolean values. More... | |
| struct | exercise_4_1::logical_and< boost::mpl::false_, E2 > |
| Short-circuit on a true value. More... | |
| struct | exercise_4_1::logical_and< boost::mpl::true_, E2 > |
| If the first value is true, the result is whatever E2's value is. More... | |
Namespaces | |
| namespace | exercise_4_1 |
| Encapsulate solution for Exercise 4-1. | |
Solution to Exercise 4-1.
Definition in file exercise-4-1.hpp.