c++ way to enlarge size of array by two?
<p>This is my current code. Is there a nicer way to do the same in c++?</p>

<pre><code>{
            // create more room in array
            Point *temp = new Point[pointList.getSize()*ENLARGE_TIMES];

            memcpy(temp,pointList._pointList,sizeof(Point)*pointList.getSize());
            pointList.~PointList();
            pointList._pointList = temp;
            pointList.setSize(pointList.getSize()*ENLARGE_TIMES);
            pointList._pointList[iterator] = point;
            iterator++;
            pointsCounter++;

            continue;
}
</code></pre>

<p><strong>EDIT: can't use a vector</strong></p>
