iterator for 2d vector

Although your question is not very clear, I’m going to assume you mean a 2D vector to mean a vector of vectors: vector< vector<int> > vvi; Then you need to use two iterators to traverse it, the first the iterator of the “rows”, the second the iterators of the “columns” in that “row”: //assuming you … Read more