I'm using the vector class in the STL library for the first time. How should I add to a specific row of the vector array?
struct x{
vector <vector <int> > v;
int row;
};
vector< int* > my ints;
int add;
if i wanted to add to first row of v with the first pointer of integers, could I do
myints[0]->v[myints[0]->row].push_back(add);
Is this method fine to create a 2 D vector of vector ints where each row could potentially be of different length (i.e. have a different number of columns)?