title: Compare vector<T>::iterator with vector<T>::reverse_iterator
body: <p>I am working on an exercise where I have a vector and I am writing my own reverse algorithm by using a reverse and a normal (forward) iterator to reverse the content of the vector. However, I am not able to compare the iterators.</p>
  
  <pre><code>int vals[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
  vector&lt;int&gt; numbers(vals, vals + 10);
  
  vector&lt;int&gt;::iterator       start = numbers.begin();
  vector&lt;int&gt;::reverse_iterator end = numbers.rend();
  </code></pre>
  
  <p>I have a previous algorithm for reversing the vector by using two iterators, however in this task I am not able to compare them using the != operator between them. My guess would be to get the underlying pointers or indexes in the vector with each other but how do I get the pointers/index?</p>