|
Boost : |
From: Jeremy Maitin-Shepard (jbms_at_[hidden])
Date: 2004-03-05 13:54:05
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk