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