title: Vectors, iterators and std::find
body: <p>Is there any way to use different types of iterators in different vectors? Or, is there a function that returns the position of element in vector as an integer?</p>
  
  <pre><code>std::vector&lt;DWORD&gt;::iterator it;        // Iterator
  
  // monsterQueue is a &lt;DWORD&gt; vector
  
  it = std::find(bot.monsterQueue.begin(), bot.monsterQueue.end(), object);   
  // Check do we have the object in the queue
  
  if(it != bot.monsterQueue.end())    // If we do have it
  {
      bot.monsterDists.at(it) = mobDist; // monsterDists is &lt;int&gt; vector
      bot.monsterCoordX.at(it) = PosX; // monsterCoordX is &lt;int&gt; vector
      bot.monsterCoordY.at(it) = PosY; // monsterCoordY is &lt;int&gt; vector too
  }
  </code></pre>
  
  <p>That's some sample code, does anyone have any pointers?</p>