91 auto oldSize = typeToIDMap_.size();
92 for (
auto it = typeToIDMap_.begin(), last = typeToIDMap_.end();
94 if (it->second ==
id) {
95 it = typeToIDMap_.erase(it);
100 auto cnt = oldSize - typeToIDMap_.size();
101 return cnt == 1 and idToCreatorMap_.erase(
id) == 1;