|
Boost Users : |
Subject: [Boost-users] What help can Boost offer?
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-01-09 05:49:36
I often want to express intent of this sort...
struct X {...};
void f( X & );
X my_array[3][6][11];
for (unsigned i=0;i!=3;++i)
for(unsigned j=0;j!=6;++j)
for(unsigned k=0;k!=11;++k)
f( my_array[i][j][k] );
Apart from all the grottiness on hardcoded sizes and
loop indices, which is just for exposition, is there
a nice idiom in boost to do traversals over multiple
indices in this way, or perhaps multiple ranges?
Thanks, Rob.
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