C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_5_6::dimensions< T > Struct Template Reference

Represent the dimensions in an array type as a sequence of numbers. More...

#include <exercise-5-6.hpp>

Inheritance diagram for exercise_5_6::dimensions< T >:

Detailed Description

template<typename T>
struct exercise_5_6::dimensions< T >

Represent the dimensions in an array type as a sequence of numbers.

The dimensions sequence is a recursively defined sequence that strips off a single array dimension as you advance through the sequence. The recently stripped dimension exists as a static member (value).

Template Parameters
TThe (compound) array type to examine. If T is not an array type, the sequence is not traverse-able.

Definition at line 60 of file exercise-5-6.hpp.


The documentation for this struct was generated from the following file: