Project import generated by Copybara.
GitOrigin-RevId: 73d686c40057684f8bfaca285368bf1813f9fc26
This commit is contained in:
@@ -90,11 +90,11 @@ void BasicTraceEventTypes(TraceEventRegistry* result) {
|
||||
}
|
||||
}
|
||||
|
||||
// A map defining int32 identifiers for std::string object pointers.
|
||||
// Lookup is fast when the same std::string object is used frequently.
|
||||
// A map defining int32 identifiers for string object pointers.
|
||||
// Lookup is fast when the same string object is used frequently.
|
||||
class StringIdMap {
|
||||
public:
|
||||
// Returns the int32 identifier for a std::string object pointer.
|
||||
// Returns the int32 identifier for a string object pointer.
|
||||
int32 operator[](const std::string* id) {
|
||||
if (id == nullptr) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user