3 ms·
One can use structs too: auto foo() { struct Result { int a; int b; int c; }; return {1,2,3}; } //.... auto [a,b,c] = foo();
by lenkite 3y ago
One can use structs too:
auto foo() {
struct Result { int a; int b; int c; };
return {1,2,3};
}
//....
auto [a,b,c] = foo();