|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Encapsulate solution for Exercise 6-0. More...
Classes | |
| struct | find_smaller |
| Find the type with a smaller size in bytes. More... | |
| struct | find_smaller< no_type, T2 > |
| Specialize the initial case. More... | |
| struct | no_type |
| Provide a type to return if the sequence is empty (no "small" type). More... | |
| struct | replace_with_smaller |
| This is our "inserter." It really just replaces instead of inserting, though. More... | |
| struct | smallest |
| This is the metafunction that returns the smallest type in the sequence. More... | |
Encapsulate solution for Exercise 6-0.