C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Internal type used by replace_type. More...
#include <exercise-2-1.hpp>
Internal type used by replace_type.
This type recurses through the datatype to do that actual replacement work. The replace_type metafunction recurses down through any non-leaf types, and this metafunction handles the leaf types. Thus, if C == X, return Y, and otherwise, we hand it back to replace_types.
C | A compound type to examine for substitutions |
X | The source type to replace |
Y | The destination type to be placed where X was |
Same | Does C == X? |
Definition at line 80 of file exercise-2-1.hpp.