|
Boost : |
Subject: [boost] [multi_array] Access a view's index_range
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2008-10-09 06:40:35
How do I access the index_range of an array_view? ie.,
typedef boost::multi_array<Cell,2 > Grid;
Grid grid( boost::extents[9][9]);
Grid::array_view<2> view = grid[indices[range(), range()]];
for (Grid::index i = view.?????.start(); i != view.?????.finish(); ++i)
{....}
where I'm expecting i to take values 0..8 inclusive.
Thanks
- Rob.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk