Boost logo

Boost :

From: nbecker_at_[hidden]
Date: 2001-03-28 09:53:25


>>>>> "Ronald" == Ronald Garcia <rgarcia4_at_[hidden]> writes:

    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.

    Ronald> It sounds like you're talking about a multi-array that uses memory
    Ronald> passed into it rather than allocating its own. I've been thinking
    Ronald> about supplying that functionality in a separate implementation class.

Take memory passed to it and selectively decide whether to make a copy
and take ownership, don't copy but still take ownership, or don't copy
and don't take ownership.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk