Project import generated by Copybara.
GitOrigin-RevId: d073f8e21be2fcc0e503cb97c6695078b6b75310
This commit is contained in:
@@ -112,11 +112,13 @@ class StringIdMap {
|
||||
return string_id->second;
|
||||
}
|
||||
void clear() { pointer_id_map_.clear(), string_id_map_.clear(); }
|
||||
const std::unordered_map<std::string, int32>& map() { return string_id_map_; }
|
||||
const absl::node_hash_map<std::string, int32>& map() {
|
||||
return string_id_map_;
|
||||
}
|
||||
|
||||
private:
|
||||
std::unordered_map<const std::string*, int32> pointer_id_map_;
|
||||
std::unordered_map<std::string, int32> string_id_map_;
|
||||
absl::node_hash_map<std::string, int32> string_id_map_;
|
||||
int32 next_id = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user