title: Is it possible to create a vector of pointers?
body: <p>Just wondering, because of a problem I am running into, is it possible to create a vector of pointers?  And if so, how?  Specifically concerning using iterators and .begin() with it, ie:  How would I turn this vector into a vector of pointers:</p>
  
  <pre><code>class c
  {
       void virtual func();
  };
  
  class sc:public c
  {
       void func(){cout&lt;&lt;"using func";}
  };
  
  sc cobj;
  
  vector&lt;c&gt;cvect
  cvect.push_back(cobj);
  vector&lt;c&gt;::iterator citer
  
  for(citer=cvect.begin();citer&lt;cvect.end();citer++)
  {
       citer-&gt;func();
  }
  </code></pre>