|
Boost Users : |
Subject: Re: [Boost-users] [multi_array] Access a view's index_range
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-09 12:23:19
AMDG
Robert Jones wrote:
> 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.
Your code seems to have gotten a bit mangled.
Can you post a small compilable example?
In Christ,
Steven Watanabe
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