void test01() { //构造方法 pair<int, int> p1(10, 2); cout << p1.first << p1.second << endl; pair<int, string> p2 = make_pair(10, "assd"); cout << p2.first << p2.second << endl; pair<int, string> p3 = p2; }