You can use a vector of vectors for this.
Suppose the contents you want to store are
int
s then you would create such a vector as -
std::vector<std::vector<int>> vvInt;
To assign the first set of 10 values you could do this -
std::vector<int> vInt;
for (int i = 0; i < 10; ++i)
{
vInt.push_back(i);
}
Now add this first set to the vector of vectors.
vvInt.push_back(vInt);
Similarly -
vInt.clear();
for (int i = 0; i < 23; ++i)
{
vInt.push_back(i);
}
vvInt.push_back(vInt);