how to declare a template class as a friend in c++
<p>I wana know if we can make a partial specialized class as a friend class.</p>

<pre><code>template&lt; class A, class B &gt;
class AB{};

class C;

template &lt; class B &gt;
class AB&lt; C, B &gt;{};

class D{
     template&lt; class E &gt; friend class AB&lt; D, E &gt;;
}
</code></pre>

<p>How to achieve the above.</p>
