std::vector<unique_ptr<Foo>> m_myVector;
m_myVector.push_back(make_unique<Foo>(<constructor_parameter_list>));


For a compilable example consider



using Foo = int;