For example if I had one or more 2D vectors and I just want to store them in a data base for example.
vector<vector<double>> one2DVector;
vector<vector<double>> two2DVector;
//Obviously can't do that but this is what I want to do
vector<vector> dataBase;
dataBase.push_back(one2DVector);
dataBase.push_back(one2DVector);
You need to declare it like this:
Note that if you using C++98 and not C++11, you need to put spaces between the
>brackets.