Boost logo

Boost :

Subject: [boost] [multi_array] Finding array bounds.
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2008-10-08 05:12:23

I'm trying to write this piece of code

struct Cell { .... };

typedef boost :: multi_array< Cell, 2 > Grid;

void f( Grid & grid )
  for ( Grid::index i=grid.?????(); i!=grid.????(); ++i )

where the intention is to iterate over the first subscript of the
multi_array. I can see that index_range has start() and finish()
methods, but I can't see how to extract the first index_range
from the multi_array.


- Rob.

Boost list run by bdawes at, gregod at, cpdaniel at, john at