void ReportManager::registerExtReport(ReportID id,
const external_report_info &ext) {
- if (contains(externalIdMap, id)) {
- const external_report_info &eri = externalIdMap.at(id);
+ auto it = externalIdMap.find(id);
+ if (it != externalIdMap.end()) {
+ const external_report_info &eri = it->second;
if (eri.highlander != ext.highlander) {
/* we have a problem */
ostringstream out;
#include "util/compile_error.h"
#include "util/noncopyable.h"
#include "util/report.h"
+#include "util/ue2_containers.h"
#include <map>
#include <set>
/** \brief Mapping from external match ids to information about that
* id. */
- std::map<ReportID, external_report_info> externalIdMap;
+ unordered_map<ReportID, external_report_info> externalIdMap;
/** \brief Mapping from expression index to exhaustion key. */
std::map<s64a, u32> toExhaustibleKeyMap;