c++ 两个set合并

set<int> a,b;
//合并到a
 
 
a.insert(b.begin(),b.end());

  

原文地址:https://www.cnblogs.com/gongyanyu/p/10480054.html