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