我没有找到回答这个问题的人,以下内容之间是否有区别:
v.push_back({x, y});
和:
v.push_back(make_pair(x, y));
假设v是这样声明的:
vector<pair<int,int> > v;
c++ std-pair
c++ ×1
std-pair ×1