Boost logo

Boost Users :

From: Levent (sly5+gmane_at_[hidden])
Date: 2006-05-06 18:33:52

Is it possible to store tuples of index or range values (or generators)
for later reuse? Consider the following:

typedef boost::multi_array<int,3> 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?

- Levent

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at