C++ Template Metaprogramming
Solutions to the exercises throughout the book
All Classes Namespaces Files Functions Variables Typedefs Macros Modules Pages
Chapter 2: Traits and Type Manipulation

"Metaprogramming as 'type computation'..." More...

Modules

 Exercise 2-0
 Define a metafunction to add const&.
 
 Exercise 2-1
 Define a metafunction to replace types.
 
 Exercise 2-2
 Rewrite boost::polymorphic_downcast.
 
 Exercise 2-3
 Print data-types using Boost MPL.
 
 Exercise 2-4
 Print data-types using a home-grown solution.
 
 Exercise 2-5
 Describe a data-type in English.
 

Files

file  chapter-2.cpp
 Test application for Chapter 2.
 

Detailed Description

"Metaprogramming as 'type computation'..."

C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond.

Author
Matt Bisson
Since
2/12/2014; C++20 — 10/6/2022