title: Using a pointer to an object stored in a vector... c++
body: <p>I have a vector of myObjects in global scope.</p>
  
  <pre><code>std::vector&lt;myObject&gt;
  </code></pre>
  
  <p>A method is passed a pointer to one of the elements in the vector.
  Can this method increment the pointer, to get to the next element, </p>
  
  <pre><code>myObject* pmObj;
  
  ++pmObj; // the next element ??
  </code></pre>
  
  <p>or should it be passed an <code>std::Vector&lt;myObject&gt;::iterator</code> and increment that instead?</p>
  
  <p>Assume for now that the vector will not get changed in the meantime.</p>