C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Given an arbitrary compound type, replace nested types. More...
#include <exercise-2-1.hpp>
Given an arbitrary compound type, replace nested types.
A ternary metafunction that takes an arbitrary compound type as its first parameter, and replaces all occurrences of a given source type with a given destination type.
If X does not exist within C, this metafunction results in a compilation error.
C | A compound type to examine for substitutions |
X | The source type to replace |
Y | The destination type to be placed where X was |
Definition at line 61 of file exercise-2-1.hpp.