How to make sure that recently created area points to NULL?
<p>How can I make sure that, for each allocated new space on heap area, the recently created element of vector of pointers points to NULL ?</p>

<pre><code> Ex:
   vector &lt; Sometype* &gt;

   vector ----------------------
          |  |  |  | ...       |
          ----------------------

   new element is pushed back but no available area so double space

   index                         x  x+1            y
   vector -------------------------------------------
          |  |  |  | ...       |   |   | ...        |
          -------------------------------------------

                               ^^^^^^^^^^^^^^^^^^^^^
                                 recently created

         x, x+1, ... y all points to the NULL 
</code></pre>

<p>I want each space on recently created part point to NULL ?           </p>
