C++11
The container std::array can bundle together a fixed number of return values. This number has to be known at compile-time and all return values have to be of the same type:
std::array<int, 4> bar(int a, int b) {
return { a + b, a - b, a * b, a / b };
}
This replaces c style ar...