title: Variadic Templates Multidimensional Array Container
body: <p>In the C++0x Variadic Templates Proposal paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2080.pdf" rel="noreferrer">Link</a> there is an example of a class which supports an arbitrary number of dimensions. I have copied it below:</p>
  <pre><code>template&lt;typename T, unsigned PrimaryDimension, unsigned... Dimensions&gt;
  class array { /* implementation */ };
  
  array&lt;double, 3, 3&gt; rotation matrix; // 3x3 rotation matrix
  </code></pre>
  <p>Sadly the implementation is not provided. As I am relatively new to variadic templates I would be interested to see an implementation of this container.</p>
  <p>Thanks to anybody who can provide a simple implementation.</p>