| 215 | } |
| 216 | |
| 217 | void Move(const std::string &oldname, const std::string &newname) { |
| 218 | auto it = dict.find(oldname); |
| 219 | if (it != dict.end()) { |
| 220 | auto obj = it->second; |
| 221 | dict.erase(it); |
| 222 | dict[newname] = obj; |
| 223 | } else { |
| 224 | FLATBUFFERS_ASSERT(false); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | T *Lookup(const std::string &name) const { |
| 229 | auto it = dict.find(name); |