title: How do you define a nested templated class' method outside of the class declaration?
body: <p>How do I define <code>func</code> outside of the class declaration, below <code>class A{...};</code>?</p>
  
  <pre><code>template&lt;typename T&gt;
  class A
  {
      template&lt;typename Q&gt;
      class B
      {
          static void func(const A&lt;T&gt;&amp; a){} // How do I define this function outside of the class declaration?
      };
  };
  </code></pre>