Boost logo

Boost Users :

Subject: [Boost-users] boost::multi_array equivalent for runtime number of dimensions
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-01-07 13:02:20


Hello,

I only know at runtime the dimension and extends of a multidimensional
array, though the number of dimensions is always < 10 for e.g.

Is there a container that allows this?

 

Otherwise, I can write code for

multi_array<T, 2>

multi_array<T, 3>

.

multi_array<T, 10>,

 

do a switch case on the dimensions variable, and select the appropriate
code,

 

regards,

 



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net