overloading operator >> like std::cout
<p>I would like to create a class similar to std::cout. I know how to overload the >> and &lt;&lt; operators, but I would like to overload the &lt;&lt; operator so it would be <strong>input</strong>, just like in std::cout.</p>

<p>it should be somthing like:</p>

<pre><code>class MyClass
{
   std::string mybuff;
 public:
   //friend std::???? operator&lt;&lt;(????????, MyClass&amp; myclass)
   {
   }
}
.
.
.

  MyClass class;
    class &lt;&lt; "this should be stored in my class" &lt;&lt; "concatenated with this" &lt;&lt; 2 &lt;&lt; "(too)";
</code></pre>

<p>Thanks</p>
