T
Terence Wilson
I'm having trouble designing a container for all the basic types(char,
int, float, double). The container should be able to hold contiguous
arrays of type T. I would like some kind of generic iterator for
accessing the data that is type independent in order that I could
write generic algorithms.
Basically I need something like std::vector that does not require a
compile type.
I could use some kind of Variant for each element, but the overhead
would be huge since all the elements have the same type.
int, float, double). The container should be able to hold contiguous
arrays of type T. I would like some kind of generic iterator for
accessing the data that is type independent in order that I could
write generic algorithms.
Basically I need something like std::vector that does not require a
compile type.
I could use some kind of Variant for each element, but the overhead
would be huge since all the elements have the same type.