How could I define template class member function in .cpp file? 
<p>How could I define template class member function in .cpp file?</p>

<p><strong>.h</strong></p>

<pre><code>template&lt;typename A&gt;
class B{
 A a;
 void function();
};
</code></pre>

<p><strong>.cpp</strong></p>

<pre><code>void B::function() 
{
}
//class used without template parameters error
</code></pre>
