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