title: how to write ostringstream directly to cout
body: <p>If I have an <code>std::ostringstream</code> object called <code>oss</code>, I understand I can do <code>std::cout &lt;&lt; oss.str()</code> to print out the string. But doing <code>oss.str()</code> would result in the returned string being copied. Is there a way to print directly the underlying <code>streambuf</code>?</p>
  
  <p>Thanks in advance!</p>