Pārlūkot izejas kodu

Merge topic 'commands-unordered-map'

967792a662 cmState: store commands in unordered_map

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5219
Marc Chevrier 5 gadi atpakaļ
vecāks
revīzija
fa910f51fd
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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;