title: signature output operator overload
body: <p>do you know, how to write signature of a function or method for operator&lt;&lt; for template class in C++? I want something like:<pre><code>
  template &lt;class A> class MyClass{
    public:
      friend ostream &amp; operator&lt;&lt;(ostream &amp; os, MyClass&lt;A> mc);
  }
  ostream &amp; operator&lt;&lt;(ostream &amp; os, MyClass&lt;A> mc){
    // some code
    return os;
  }
  </pre></code>
  But this just won't compile. Do anyone know, how to write it correctly?</p>