I hear from Walter Brown of the C++ Standards Committee ( http://www-cdserver.fnal.gov/cd_public/cpd/aps/J16.htm ) that this memory arrangement for vectors is now formalized in the latest standard. As Rene points out, compilers conforming to the standard is another question... Aaron. "Walter F.J. Mueller" wrote: > I'm doing just the same, and it speeds up quite a bit. To the best of my > knowledge did the original STL specification not guarantee that the elements > of a vetor are stored in contiguous memory. However, all implementations I've > seen do this, and afaik it is dicussed to explicitely require this in the > future. But one has to keep in mind that this only applies to vector, but > not for example for deque.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:10 MET