title: the value of iterator
body: <p>i created a map.
  i want to print the index of the key to a file using the itr in the map.
  this is what i mean:</p>
  
  <pre><code>map &lt;string,int&gt; VendorList;  
  VendorList[abc] = 0;
  VendorList[mazda] = 111;
  VendorList[ford] = 222;
  VendorList[zoo] = 444;
  map &lt;string,int&gt;::iterator itr=VendorList.find("ford");
  fstream textfile;
  textfile &lt;&lt; itr;
  </code></pre>
  
  <p>if i put in the find line abc i wish the program to cout 1.</p>
  
  <p>if i put in the find line mazda i wish the program to cout 2.</p>
  
  <p>if i put in the find line ford i wish the program to cout 3.</p>
  
  <p>if i put in the find line zoo i wish the program to cout 4.</p>
  
  <p>how do i do that?
  the compiler is shouting on the line:</p>
  
  <pre><code> textfile &lt;&lt; itr;
  </code></pre>
  
  <p>it gives this error:
  error C2679: binary '&lt;&lt;' : no operator found which takes a right-hand operand of type 'std::_Tree&lt;_Traits>::iterator' (or there is no acceptable conversion)</p>