I have a 2d vector that is not necessarily square. I want to know how many rows and columns it has (obviously, it isn't really 2d, but I'm thinking of it as an array).
The number of elements of each vector within this vector can be found with vec[i].size(), but what about the number of vector elements within the original vector? Can I use vec.size()? Or will that return the total number of elements in the 2d vector?