c++ how to return vector from function code example Example: how to return a vector c++ std::vector<x>f();