| 30 | } |
| 31 | |
| 32 | const AllocatorFactoryRegistry::FactoryEntry* |
| 33 | AllocatorFactoryRegistry::FindEntry(const string& name, int priority) const { |
| 34 | for (auto& entry : factories_) { |
| 35 | if (!name.compare(entry.name) && priority == entry.priority) { |
| 36 | return &entry; |
| 37 | } |
| 38 | } |
| 39 | return nullptr; |
| 40 | } |
| 41 | |
| 42 | void AllocatorFactoryRegistry::Register(const char* source_file, |
| 43 | int source_line, const string& name, |