Use .contains() instead of .find() or .count()

This commit is contained in:
Tim Wojtulewicz 2025-07-23 16:34:44 -07:00
parent d20550f553
commit b592b6c998
68 changed files with 201 additions and 207 deletions

View file

@ -912,7 +912,7 @@ Type* Type::LookUpByID(ID* id) {
}
void Type::AddPredefinedType(const string& type_name, Type* type) {
ASSERT(type_map_.find(type_name) == type_map_.end());
ASSERT(! type_map_.contains(type_name));
type_map_[type_name] = type;
}