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