Is it possible to build a Slice/SubVector with shared storage?

Aug 6, 2014 at 3:08 AM
Edited Aug 6, 2014 at 3:10 AM
I have a very particular problem where I could use a shared storage but slicing vectors where Copy would be pretty wasteful.

Is there any way I could create and "distribute" those slices around without having to deal with a Copy back approach? What I mean with distribute is that the algorithm doing the slicing is not the one that uses those slices... Therefore, for the point of view of the consumer they should be dealing with a vector.

Check the GetFeatures method at the end and the protected constructor:
Aug 12, 2014 at 4:33 PM
No, this is not currently possible, except with a user wrapper. How do you intend to use the resulting sub-vector? Does it need to behave like a normal vector?