Is it safe to to use template for primitive / class and pointer to primitive / class?
<pre><code>template&lt;class T&gt;
class stack {
    T arr[5];
};


class item{};


stack &lt;int&gt; obj1;
stack &lt;int *&gt; obj2;
stack &lt;item&gt; obj3;
stack &lt;item *&gt; obj4;
</code></pre>

<p>Is it a correct template implementation?</p>
