I want to create a vector of vectors, where the individual vectors can be of different types, as follows:
std::vector<int> v1;
std::vector<float> v2;
std::vector<double> v3;
std::vector<SomeType> all;
all.push_back(v1);
all.push_back(v2);
all.push_back(v3);
What should SomeType be in this case?
My actual use case:
I have vectors of different data types which need to be written out to disk. Everytime I add a column to the dataset, I don't want to have to specify the column in various different places. I want to be able to iterate through the columns easily.