title: How to deallocate object pointer in vector?
body: <p>I have ;</p>
  
  <pre><code>class object {
                      // any private datas token in heap area 
               public : 
                     ~object () ; 
  
  };
  </code></pre>
  
  <p>in function ;</p>
  
  <pre><code> vector &lt; object*&gt; tmp ;
  </code></pre>
  
  <p>my question is ;</p>
  
  <ul>
  <li>How can I erase/deallocate <strong>tmp[i]</strong> ? In other words, what things should I write in object::destructor ?         </li>
  </ul>