C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
"How best to write metafunctions returning integral constants." More...
Modules | |
Exercise 4-0 | |
Basic tests for MPL boolean operations. | |
Exercise 4-1 | |
Implement my own versions of Boost MPL boolean operations. | |
Exercise 4-2 | |
Implement my versions of MPL boolean operations with many arguments. | |
Exercise 4-3 | |
Weed out compile-time inefficiencies. | |
Exercise 4-4 | |
Implement some new type traits with existing MPL facilities. | |
Exercise 4-5 | |
Return different types based on parameter types. | |
Files | |
file | chapter-4-undefined_bool.hpp |
Define some booleans that don't compile on either true or false . | |
file | chapter-4.cpp |
Test application for Chapter 4. | |
Namespaces | |
namespace | chapter4 |
Provide utilities availble to all Chapter 4 solutions. | |
"How best to write metafunctions returning integral constants."
C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond.