Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
通过auto&结构化绑定的u_2可以改变s_1.a的值,为什么decltype结果是int而不是int&呢
这里decltype 对结构化绑定的别名有个特殊处理 返回的 引用类型 是结构化绑定中特殊定义的, 不是传统认为的 引用类型, 指的是成员的声明类型, 除非成员是 T & 才会返回 T &