title: How to peek at the remaining stringstream characters after using getline?
body: <pre><code>std::string s;
  std::stringstream ss;
  ss &lt;&lt; "a=b+c" &lt;&lt; std::endl &lt;&lt; "d=e+f";
  
  std::getline(ss, s, '=');   // gives me "a"
  std::getline(ss, s);        /* gives me "b+c"  &lt;- just want to peek: don't
                                                    want to change state of ss */
  std::getline(ss, s, '+');   // BUT still want "b" here, not "d=e"
  </code></pre>
  
  <p><code>s</code> now contains <code>"a"</code> Now, how do I <strong>peek</strong> at the remaining characters of the line (<code>"b+c"</code>)? That is, <strong>without</strong> causing the next operation to start at the next line?</p>
  
  <p>(Example contrived, I know.)</p>