title: Retrieve a char from a std::stringstream
body: <p>Is there a function for getting the char at position <code>n</code> from a stringstream without copying to a string first and without removing the char from the buffer? In the documentation I only see a <code>get</code> function to retrieve the next char, but no function to access a char at a specific position.</p>
  
  <p>E.g.:</p>
  
  <pre><code>std::stringstream s;
  s &lt;&lt; "abcdefg";
  char c = s.getCharAt(3); // I am looking for this method
  // c should be 'd' now
  </code></pre>