I have this vector:
std::vector<my_class> my_vector;
I want to add a new element with a standard constructor. So I write:
my_vector.push_back(my_class());
is there any way to do this without mentioning the type directly ?. For example, something like:
my_vector.push_back(auto());
source share