title: How can a class inherit from a template based on itself?
body: <p>While reading an article, I came across the following syntax:</p>
  
  <pre><code>template &lt;typename T&gt;
  class MyTemplate
  {
      T* member;
      T* method();
      // ...
  }
  
  class MyClass : public MyTemplate&lt;MyClass&gt;
  {
      // ...
  }
  </code></pre>
  
  <p>I don't exactly understand how <code>MyClass</code> can inherit from a template that's based on itself. Could you please explain how this works?</p>