vector<vector<int>> v(100, vector<int>(100)); // 101 vector<int> are created
I need to created a vector of vectors (or objects) like above. But then there will be 101 vector<int> created, which is one more I needed. If i understand it correctly, first a vector<int>(100) is created and then it's copied 100 times.
So I want to know if there's a way to avoid the reduncdant construction? Just create 100 elements.
 
    