auto

vector<int> s(2, 1);
auto [x, y] = s; //错误用法
pair<int, int> p{1,1};
auto [x, y] = p; //正确用法
posted @ 2023-01-25 08:51  兮何其  阅读(47)  评论(0)    收藏  举报