C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
c++20/exercise-2-4.hpp File Reference

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 &)
 

Detailed Description

Solution to Exercise 2-4 (C++20).

Author
Matt Bisson

Definition in file c++20/exercise-2-4.hpp.