1 using System;
2 using System.Collections;
3
4 Set<string> MakeStringSet()
5 {
6 Set<string> set;
7 set.Insert("foo");
8 set.Insert("bar");
9 set.Insert("baz");
10 return set;
11 }
12
13 int main()
14 {
15 Set<string> set = MakeStringSet();
16 for (const auto& s : set)
17 {
18 Console.Out() << s << endl();
19 }
20 auto it = set.Find("foo");
21 if (it != set.End())
22 {
23 Console.Out() << *it << endl();
24 }
25 return 0;
26 }