title: Is there a way to specify the dimensions of a nested STL vector C++?
body: <p>I know vectors can be constructed to a predefined size</p>
  
  <pre><code>vector&lt;int&gt; foo(4);
  </code></pre>
  
  <p>But is there a way to specify the dimensions of nested vectors?</p>
  
  <pre><code>vector&lt; vector&lt;int&gt; &gt; bar(4);
  </code></pre>
  
  <p>Lets say I wanted a vector of size 4 containing vector's of size 4... like a 4x4 multidimensional array of ints?</p>