From: David Abrahams (abrahams_at_[hidden])
Date: 2001-06-12 14:50:09
----- Original Message -----
From: "Larry Evans" <jcampbell3_at_[hidden]>
> David Abrahams wrote:
> > One problem with this is that it requires much more of the iterator in
> > cases than it otherwise might. In an array stored as vectors of vectors
> > of... vectors, each iterator would need to have references to all of the
> > containing vectors.
> Couldn't the iterator just contain a vector of indices of length == rank,
> and a pointer to the vector of vectors of... vectors (VofV), and then just
> the VofV with the vector of indices.
When you start talking about iterators containing vectors, I get worried.
> I guess bad thing about that is that it takes longer.
That's putting it mildly. Iterators should be lightweight.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk