title: What is the easiest way to print a variadic parameter pack using std::ostream?
body: <p>What is the easiest way to print a parameter pack, separated by commas, using <code>std::ostream</code>?</p>
  
  <p>Example:</p>
  
  <pre><code>template&lt;typename... Args&gt;
  void doPrint(std::ostream&amp; out, Args... args){
     out &lt;&lt; args...; // WRONG! What to write here?
  }
  
  // Usage:
  int main(){
     doPrint(std::cout,34,"bla",15); // Should print: 34,bla,15
  }
  </code></pre>
  
  <p>Note:
  It may be assumed that a corresponding overload of the <code>&lt;&lt;</code> operator is available for all types of the parameter pack.</p>