title: is it possible to pass iostream into a function?
body: <p>What I mean:</p>
  
  <p>Everyone knows this method of redirecting stream to output:</p>
  
  <pre><code>cout &lt;&lt; "sometext"
  </code></pre>
  
  <p>but is it possible to pass that stream to a function like this:</p>
  
  <pre><code>my_function() &lt;&lt; "sometext";
  </code></pre>