title: Optimize "for" loop
body: <pre><code>std::vector&lt;int&gt; someVector;    
  for (unsigned int i = 0; i &lt; someVector.size(); i++)
  {
     // do something
  }
  </code></pre>
  
  <p>Does the value of <code>someVector.size()</code> get calculated <em>every time</em>?</p>