title: Custom manipulator for class
body: <p>I'm trying to write a stream manipulator with arguments.
  I have class with 3 int's CDate(Year, Month, Day).
  So I need to make manipulator <code>date_format(const char*)</code>.
  e.g. : </p>
  
  <pre><code>CDate a(2006, 5, 15);
  cout &lt;&lt;"DATE IS : " &lt;&lt; date_format("%Y-hello-%d-world-%m-something-%d%d") &lt;&lt; a;
  </code></pre>
  
  <p>Output will be : </p>
  
  <pre><code>DATE IS : 2006-hello-15-world-5-something-1515
  </code></pre>
  
  <p>Guess i need to use that </p>
  
  <pre><code>ios_base &amp; dummy_date_format_manipulator ( ios_base &amp; x )
  {
      return x;
  }
  
  ios_base &amp; ( * ( date_format ( const char * fmt ) ) )( ios_base &amp; x )
  {
      return dummy_date_format_manipulator;
  }
  </code></pre>
  
  <p>but i don't know how.</p>