auto_ptr, immediate get() and release() - is it useful?
<p>I'm working on someone else's code that contains lots of statements like this</p>

<pre><code>std::auto_ptr&lt;ObjectA&gt; smartptr(new ObjectA(this));
objects_list.push_back(smartptr.get());
smartptr.release();
</code></pre>

<p>Is this even useful? Is there some practical reason to use a smart pointer here instead of just writing </p>

<pre><code>objects_list.push_back(new ObjectA(this));
</code></pre>
