#include <iostream>
#include <set>
int main() {
// 创建一个Set容器
std::set<int> mySet = {3, 1, 4, 1, 5, 9};
// 使用迭代器遍历Set
std::cout << "Set中的元素: ";
for (auto it = mySet.begin(); it != mySet.end(); ++it) {
std::cout << *it << " ";
}
return 0;
}