return new vector c++ with element code example Example: how to return a vector c++ std::vector<x>f();