title: Is it safe to return vector<auto_ptr<T>>?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/111478/why-is-it-wrong-to-use-stdauto-ptr-with-standard-containers">Why is it wrong to use std::auto_ptr&lt;&gt; with standard containers?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a function to return some Object in pointer, so I use:</p>
  
  <pre><code>vector &lt;auto_ptr &lt;Object&gt; &gt; func() { ... }
  </code></pre>
  
  <p>I want to know whether it is safe or not?</p>