123
std::vector<MyClass> my_vector; MyClass mc; my_vector.push_back(mc);
12
std::vector<BaseClass*> my_vector; my_vector.push_back(new DerivedClass);