Deleting a reference
<p>Is this valid?  An acceptable practice?</p>

<pre><code>typedef vector&lt;int&gt; intArray;

intArray&amp; createArray()
{
    intArray *arr = new intArray(10000, 0);

    return(*arr);
}


int main(int argc, char *argv[])
{

    intArray&amp; array = createArray();

    //..........

    delete &amp;array;

    return 0;
}
</code></pre>
