auto

Posted 兮何其

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了auto相关的知识,希望对你有一定的参考价值。

vector<int> s(2, 1);
auto [x, y] = s; //错误用法
pair<int, int> p1,1;
auto [x, y] = p; //正确用法

以上是关于auto的主要内容,如果未能解决你的问题,请参考以下文章