title: c++ best way to use for loop
body: <p>I have this question that runs in my mind...
  I have a std::vector to iterate:
  which is the best way (<strong>the faster</strong>) to iterate?</p>
  
  <p>here is the code using an iterator:</p>
  
  <pre><code>// using the iterator
  for( std::vector &lt;myClass*&gt;::iterator it = myObject.begin( ); it != myObject.end( ); it++ )
  {
      (*it)-&gt;someFunction( );
  }
  </code></pre>
  
  <p>and here is 'normal' mode...</p>
  
  <pre><code>// normal loop
  for( int i = 0; i &lt; myObject.Size( ); i++ )
  {
      myObject[i]-&gt;someFunction( );
  }
  </code></pre>
  
  <p>thanks for your suggestions!</p>