|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Implement some new type traits with existing MPL facilities. More...
Files | |
| file | exercise-4-4.hpp |
| Solution to Exercise 4-4. | |
Namespaces | |
| namespace | test_4_4 |
| Tests functionality from Exercise 4-4. | |
| namespace | exercise_4_4 |
| Encapsulate solution for Exercise 4-4. | |
Implement some new type traits with existing MPL facilities.
4-4. Use integral operators and the type traits library facilities to
implement the following composite traits:
is_data_member_pointer
is_pointer_to_function
is_reference_to_function_pointer
is_reference_to_non_const