title: returning c++ iterators
body: <p>I have a function that returns an iterator if an object is found.</p>
  
  <p>Now i have a problem. How do i fix the problem of informing the object that called this function that the object was not found?</p>
  
  <pre><code>vector&lt;obj&gt;::iterator Find(int id, int test)
  {
          vector&lt;obj&gt;::iterator it;
              aClass class;
  
              for(it = class.vecCont.begin(); it != class.vecCont.end(); ++it)
              {
                 if(found object) //currently in psuedo code
                 return it;
              }
  
              return ???? // &lt;&lt;&lt; if not found what to insert here?
  
  }
  </code></pre>
  
  <p>Do i need to change my data structure in this instead?</p>
  
  <p>Thanks in advance! :)</p>