|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Solution to Exercise 2-5 (C++20). More...
#include <iostream>Go to the source code of this file.
Classes | |
| struct | exercise_2_5::cpp20::type_descriptor_eng< T > |
| Display data-types in English wording. More... | |
Namespaces | |
| namespace | exercise_2_4 |
| Encapsulate solution for Exercise 2-4. | |
| namespace | exercise_2_5 |
| Encapsulate solution for Exercise 2-5. | |
| namespace | exercise_2_5::cpp20 |
| Encapsulate solution for Exercise 2-5 (C++20). | |
Functions | |
| template<typename T > | |
| consteval T * | exercise_2_4::error_unhandled_type () |
| Produce a compile-time failure for an "unhandled" type. | |
| template<typename T > | |
| std::ostream & | exercise_2_5::cpp20::operator<< (std::ostream &os, type_descriptor_eng< T > const &) |
Solution to Exercise 2-5 (C++20).
Definition in file c++20/exercise-2-5.hpp.