How is a Vector of Vector aligned in memory?
问题 I understand as Set size of vector of vectors at run time describes, one can declare vector of vector as vector<vector<int> > ref; then resize the first level by ref.resize(i); and push element at the 2nd level: ref[i].push_back(23); But how are vector of vector aligned in memory? For simple vector, it's a container and align its element continuously, like an array ; but in the case of vector of vector, I couldn't see the picture. As the size of each inner vector (the vector in vector of