title: Initializing a two dimensional std::vector
body: <p>So, I have the following:</p>
  
  <pre><code>std::vector&lt; std::vector &lt;int&gt; &gt; fog;
  </code></pre>
  
  <p>and I am initializing it very naively like:</p>
  
  <pre><code>    for(int i=0; i&lt;A_NUMBER; i++)
      {
              std::vector &lt;int&gt; fogRow;
              for(int j=0; j&lt;OTHER_NUMBER; j++)
              {
                   fogRow.push_back( 0 );
              }
              fog.push_back(fogRow);
      }
  </code></pre>
  
  <p>And it feels very wrong... Is there another way of initializing a vector like this?</p>