Multiple return values (C++17)

Example:

struct S { int i; unique_ptr<widget> w; };
S f() { return {0, make_unique<widget>()}; }
auto [ my_i, my_w ] = f();
Written on November 25, 2018, Last update on November 25, 2018
c++