title: Replacing unique_ptr object in a vector with Another unique_ptr
body: <p>I want to replace the unique_ptr object at that index with another one, which is essentially "deleting" the pointer currently in the vector, and moving classObj into that spot. </p>
  
  <pre><code>std::unique_ptr&lt;ClassName&gt; classObj(new className());
  classNameStorage[5] = classObj; // classNameStorage.size() &gt; 5
  </code></pre>
  
  <p>The code above, using the assignment operator is invalid.</p>