title: Can I do pointer arithmetic on an STL::vector::iterator
body: <p>Currently I use an iterator to search through a vector and test its elements. I access the elements using</p>
  
  <pre><code>std::vector&lt;int&gt;::iterator it;
  if (*it == 0);
  </code></pre>
  
  <p>Can I use the same pointer arithmetic style logic to also test the next element (without altering my iterator)?</p>
  
  <p>I first need to see if it will push the iterator out of bounds</p>
  
  <pre><code>if (it != myvec.end())
  </code></pre>
  
  <p>Then test both current element and next element</p>
  
  <pre><code>if (*it == 1 &amp;&amp; *(it + 1) == 1)
  </code></pre>
  
  <p>Will this work as I expect from using pointers?</p>