title: C++ map over an iterator?
body: <p>I am looking over some code that looks something like this </p>
  
  <pre><code>map&lt;string, int&gt;::iterator itr = mValue.find(inName);
  </code></pre>
  
  <p>Why are they defining an iterator. Is it not possible to say something like </p>
  
  <pre><code>int value = mValue.find(inName)
  </code></pre>
  
  <p>Thanks.</p>