
7 May
2006
7 May
'06
1:43 p.m.
Levent wrote:
Is it possible to store tuples of index or range values (or generators) for later reuse? Consider the following:
typedef boost::multi_array
Arr; typedef Arr::index_range Ir; typedef ??? indices; Arr a(boost::extents[3][4][5]); Arr b(a); indices somerange = Arr::index_gen[Ir()][Ir(1,5)][Ir()<2]; b[somerange] = a[somerange]; // and so on What should `???' be?
thanks - Levent
it seems one answer is typedef boost::detail::multi_array::index_gen<3,3> indices; but is there anything as a part of the user interface?