title: Peeking the next element in STL container
body: <p>Is it possible to peek next element in a container which the iterator currently points to without changing the iterator?</p>
  
  <p>For example in std::set,</p>
  
  <pre><code>int myArray[]= {1,2,3,4};
  set &lt;int&gt; mySet(myArray, myArray+4);
  set &lt;int&gt;::iterator iter = mySet.begin();
  
  //peek the next element in set without changing iterator.
  
  mySet.erase(iter); //erase the element if next element is n+1
  </code></pre>