Prechádzať zdrojové kódy

cmState: store commands in unordered_map

Oleksandr Koval 5 rokov pred
rodič
commit
967792a662
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      Source/cmState.h

+ 3 - 3
Source/cmState.h

@@ -5,10 +5,10 @@
 #include "cmConfigure.h" // IWYU pragma: keep
 
 #include <functional>
-#include <map>
 #include <memory>
 #include <set>
 #include <string>
+#include <unordered_map>
 #include <vector>
 
 #include "cmDefinitions.h"
@@ -219,8 +219,8 @@ private:
 
   cmPropertyDefinitionMap PropertyDefinitions;
   std::vector<std::string> EnabledLanguages;
-  std::map<std::string, Command> BuiltinCommands;
-  std::map<std::string, Command> ScriptedCommands;
+  std::unordered_map<std::string, Command> BuiltinCommands;
+  std::unordered_map<std::string, Command> ScriptedCommands;
   cmPropertyMap GlobalProperties;
   std::unique_ptr<cmCacheManager> CacheManager;
   std::unique_ptr<cmGlobVerificationManager> GlobVerificationManager;