Consider a two-dimensional vector with integers, but initially only with one element:
std::vector< std::vector <int> > vec( 1, std::vector<int>( 1, 0 ) );
Now I want to make the vector in both dimensions larger, so that the vector results always in a m x m matrix.
Will the following two commands do that:
vec.push_back( std::vector<int> );
vec[0].push_back( 0 );
or will just the first row and respectively the first column increase by an element?