struct Point
{
int x;
int y;
};
Point pt{1, 2};
auto [ax, ay] = pt;
auto& [a2x, a2y] = pt;
Here is the transformed code:
struct Point
{
int x;
int y;
};
Point pt = {1, 2};
Point __pt9 = Point(pt);
int & ax = __pt9.x;
int & ay = __pt9.y;
Point & __pt13 = pt;
int & a2x = __pt13.x;
int & a2y = __pt13.y;
Live view