Huge discussion for when he probably just wants something like this:
std::vector<some_class> array;
void pushback_function()
{
some_class temp;
array.push_back(std::move(temp));
}
... to avoid an extraneous copy constructor and destructor call, but not eliminate destructors everywhere.