title: Remove last char in stringstream?
body: <p>For example, the stringstream contains "abc\n", I want to remove the last char '\n'.</p>
  
  <p>I know it can be done by using '<strong>str</strong>' first.</p>
  
  <p>But could it be done without stringstream::str()?</p>