c++ returning vector of objects doesnt work code example Example: how to return a vector c++ std::vector<x>f();