Deleting an array of classes
<p>Would the following properly destroy everything (all appropriate destructors called and all memory freed)?</p>

<pre><code>Class* var[50];
var[0] = new SubClass();

delete[] *var;
</code></pre>

<p>Similar to</p>

<pre><code>Class** var = new Class*[50];
var[0] = new SubClass();

delete[] var;
</code></pre>

<p>Or should I be iterating over the array and delete each individual object (which is what I thought delete[] did).</p>
