| 54 | static int seed; |
| 55 | |
| 56 | static key add(const string& s) |
| 57 | { |
| 58 | auto it = names.right.find(s); |
| 59 | if (it == names.right.end()) |
| 60 | { |
| 61 | // add it |
| 62 | key id = ++seed; |
| 63 | names.insert({seed, s}); |
| 64 | return id; |
| 65 | } |
| 66 | return it->second; |
| 67 | } |
| 68 | key first_name, last_name; |
| 69 | }; |
| 70 |