title: Column size and row size of a 2D vector in C++
body: <p>I have a vector like this : </p>
  
  <pre><code>vector&lt; vector&lt;int&gt; &gt; myVector;
  </code></pre>
  
  <p>All row and column numbers are same in this vector.</p>
  
  <p>I want to find row count and column count of this vector.</p>
  
  <p>For row count I come up with : </p>
  
  <pre><code>myVector[0].size();
  </code></pre>
  
  <p>For column count, I can't come up with anything. Can you tell me if my row count is correct and can you tell me how I can get column count? Thanks.</p>