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

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

#include <exercise-5-7.hpp>

Inheritance diagram for exercise_5_7::dimensions_b< T >:
exercise_5_7::dimensions_b_impl< T, boost::mpl::void_ >

Additional Inherited Members

- Public Types inherited from exercise_5_7::dimensions_b_impl< T, boost::mpl::void_ >
typedef dimensions_b_tag tag
 
typedef boost::mpl::void_ next
 
typedef boost::mpl::void_ prev
 

Detailed Description

template<typename T>
struct exercise_5_7::dimensions_b< 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).

Note
The outward-facing metafunction simply forwards to the implementation class
Template Parameters
TThe (compound) array type to examine. If T is not an array type, the sequence is not traverse-able.

Definition at line 97 of file exercise-5-7.hpp.


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