how to return a vector c++

C++
std::vector<x>f();
Source

Also in C++: