set和map的说明和区别 set和map皆出自于stl库的关联容器,关联容器基于二叉树进行实现。 实用例子(set) set<int> a; a.insert(1); a.insert(2); a.insert(1);