|
Boost : |
From: Ronald Garcia (rgarcia4_at_[hidden])
Date: 2001-03-27 19:40:20
nb> How about a constructor taking a pair of iterators over linear
nb> memory? Something like:
nb> template<typename InputIter> multi_array (InputIter start,
nb> InputIter end, Policy p)
nb> This allows multi_array to interoperate with old-fashioned C
nb> arrays, without forcing a copy. Policy could specify the
nb> memory deallocation policy.
It sounds like you're talking about a multi-array that uses memory
passed into it rather than allocating its own. I've been thinking
about supplying that functionality in a separate implementation class.
ron
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk