1. Set 初始化
Set<int> a;
a.insert(1);
2. Set 的大小
Set<int *> b;
int setSize = b.size();
3. Set 中查找一个元素
Set<int> c;
int target = 163;
if (c.find(target) !== c.end())
{
// find the target
}
1. Set 初始化
Set<int> a;
a.insert(1);
2. Set 的大小
Set<int *> b;
int setSize = b.size();
3. Set 中查找一个元素
Set<int> c;
int target = 163;
if (c.find(target) !== c.end())
{
// find the target
}