title: about the pointer array using template in c++
body: <p>i have a class shown below:</p>
  
  <pre><code>template &lt;class TValue&gt;
      class ICData
      {
      private :
  TValue value;
      public:
  inline ICData()
  {
  };
  TValue get_value();
  void set_value(TValue data);
      };
  
      template &lt;class TValue&gt;
      TValue ICData&lt;TValue&gt;::get_value()
      {
  return value;
      }
  
       template &lt;class TValue&gt;
       void ICData&lt;TValue&gt;::set_value(TValue _value)
       {
  value=_value;
       }
  </code></pre>
  
  <p>i know how to make a pointer array by:</p>
  
  <pre><code>    ICData &lt;int&gt; *ICArray[10];
      ICArray[0]=new ICData&lt;int&gt;();
      ICArray[1]=new ICData&lt;int&gt;();
  </code></pre>
  
  <p>but is there any way to make a pointer array using template ? like below: </p>
  
  <pre><code>            template &lt;class T&gt;// iknow this code is WRONG
      ICData &lt;T&gt; *ICArray[10];
      ICArray[0]=new ICData&lt;int&gt;();
      ICArray[1]=new ICData&lt;float&gt;();
  </code></pre>
  
  <p>thanks in advance.</p>