Hi,
I am new to the boost variant and have the following issue.
I have, two numeric vector-like structures (say a contiguous and a strided – the actual problem has many more),
and would like to create a variant of those two to use interchangeably in my code.
Then plan is to have different constructors for different hosted structures and play with deriving-from/containing a variant
These structures, being stl-like have iterators.
Is there a mechanism to export the iterator that corresponds to the structure hosted in the variant and use it?
Would I have along-side a variant of the corresponding iterators – if this is possible at all?
Is there a –preferrably elegant, nut necessarily efficient- solution to this?
Thank you in advance for your help,
Kind Regards,
Petros