| 207 | } |
| 208 | |
| 209 | bool Add(const std::string &name, T *e) { |
| 210 | vector_emplace_back(&vec, e); |
| 211 | auto it = dict.find(name); |
| 212 | if (it != dict.end()) return true; |
| 213 | dict[name] = e; |
| 214 | return false; |
| 215 | } |
| 216 | |
| 217 | void Move(const std::string &oldname, const std::string &newname) { |
| 218 | auto it = dict.find(oldname); |
no test coverage detected