头文件:
#include <set>
定义:
Set<string> set1;
添加:
set1.insert("the");
查询/获取元素
set1.find(1); // retrns iterator set1.count(1); // returns number if(set1.find(1) != set1.end())
模板:Set类
原文:http://www.cnblogs.com/mobileliker/p/4095314.html