title: How to correctly move ownership from raw pointer to std::unique_ptr?
body: <p>My approach is:</p>
  
  <pre><code>class SomeClass
  {
      std::vector&lt;std::unique_ptr&lt;MyObject&gt;&gt; myObjects;
  public:
      void takeOwnership(MyObject *nowItsReallyMyObject)
      {
          myObjects.emplace_back(std::move(nowItsReallyMyObject));
      }
  };
  </code></pre>
  
  <p>Am I doing everything correctly or are there any better solutions?</p>