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