title: std:map iterator returns badptr on find
body: <p>I have my <code>std::map</code> defined as </p>
  
  <pre><code>typedef std::map&lt;string,ImageData*&gt; ImageDataMap;
  typedef std::pair&lt;string,ImageData*&gt; ImageDataPair;
  typedef std::map&lt;string,ImageData*&gt;::iterator ImageDataIterator;
  </code></pre>
  
  <p>The above map stores string which is an image file name and <code>ImageData</code> which is the the image metadata. When i use the find as shown below</p>
  
  <pre><code>ImageDataIterator iter =  imageMap-&gt;find("Fader.tga");
  if(iter == imageMap-&gt;end()){...}
  </code></pre>
  
  <p>The <code>iter-&gt;first</code> is a badptr and so it fails the if condition below is. What's wrong here? Running on vc9 express edition on xp64 (the program is 32bit)</p>