
5 Mar
2004
5 Mar
'04
6:54 p.m.
Perhaps in addition to a data() function, it would be useful if the container provided constant-time access to the data as two arrays. Perhaps something like std::pair<T *, T *> first_range() and std::pair<T *, T *> second_range(). (Where these can also be made available in const-form, since no internal modification is necessary) Then as Thorsten suggested, an operation such as linearize or reorder could be added which orders the elements such that first_range() contains all of the elements. -- Jeremy Maitin-Shepard