title: Does stringstream.read() consume the stream?
body: <p>I can't tell from the documentation how <code>std::stringstream.read()</code> works. Does it consume the stream or not?</p>
  
  <p>In other words:</p>
  
  <pre><code>std::stringstream ss;
  char buffer[6];
  
  ss &lt;&lt; "Hello world!";
  ss.read(buffer, 6);
  
  std::cout &lt;&lt; ss.str(); // Is this "Hello world!" or just "world!"
  </code></pre>