为什么C ++ 17结构化绑定不像this->
运算符那样是这样的语法:
std::tuple<int, std:string> external_function()
{
return { 0, "" };
}
class Foo
{
public:
void internal_method()
{
auto [this->x, unused] = external_function();
}
private:
int x;
};
如何将类成员说明符添加到返回的变量名中?