C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Encapsulate solution for Exercise 5-6. More...
Classes | |
struct | dimensions |
Represent the dimensions in an array type as a sequence of numbers. More... | |
struct | dimensions< T[N]> |
Basically a tuple where the "head" is the value, and the rest is accessed by "tail". More... | |
struct | dimensions_iterator |
Define a (forward-only) iterator for our dimensions sequence. More... | |
struct | dimensions_tag |
A tag for tag-dispatched sequence metafunctions. More... | |
Encapsulate solution for Exercise 5-6.