title: Is it better to save object pointer in STL container rather than object itself?
body: <p>Suppose I have a class <code>A</code>, and I need a <code>vector</code> of objects with class <code>A</code>.
  Is it better to use <code>std::vector&lt;A*&gt;</code> or <code>std::vector&lt;A&gt;</code>?
  I came across some lectures mentioned that the former doesn't require the definition of copy constructor and copy assignment operator; while the latter requires definitions of both. Is this correct?</p>