I am trying to make a table class that will be able to have multiple columns of data. I want it to have something to hold data (I was using a 2D vector for only one data type) in it, somewhat like a pair, but for any number of data types. The class is a template to make it generalized.
I have looked a little at variadic templates, but I don't know how to declare the vectors for each data types then.
What I meant was, say if I want there to be two columns in my table, I can call Table <int, int>. Or, if there were 3 Table <string, int, int> and so on.
So, if I want to use boost::any to hold data,could I do it like so: std::vector<std::vector<boost::any>> var
And push a vector of required type ( like vector<int> ) into var?