cpp中set的使用 交并差 只能存到支持push_back()的容器里。 并集 STL中set求交集、并集、差集的方法 并集:set1.insert(set2.begin(), set2.end()) 转vector C++ Vector转Set与Set转Vector