list<pair<int,int>> li ;
    li.push_front({23,1});    //对
    li.emplace_front(23,1);    //对
    //li.push_front(1,2) ;    //错
    //li.emplace_front({1,2}) ; //错
    li.emplace_front(make_pair(1,2));  //对
    li.push_front(make_pair(23,1));   //对

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
相关资源
相似解决方案