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

Aug 6 at 2:08 AM
Edited Aug 6 at 2: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: https://gist.github.com/redknightlois/5d6e0e848e8daa5e520b
Coordinator
Aug 12 at 3: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?

Thanks,
Christoph