I have a 2D vector that I have a count on the first dimension and push_back for the second dimension. The vector i have declared like this:
std::vector<std::vector<string> > TwoD(1000, std::vector<string>());
For example say that I have counted the first dimension to 3 and push_backed the second dimension.
What I wonder how to do is how I can iterate from begin() to end() for the second dimension ? The First dimension is counted to 3.
If I only would have 1 dimension I could do like this.
for (std::vector<string>::iterator iter = TwoD.begin(); iter != TowD.end(); iter++)
{
File << *iter;
}