summaryrefslogtreecommitdiffstats
path: root/Source/cmPropertyMap.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-06-03 08:29:12 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-06-08 10:25:35 (GMT)
commit00d265e3c812516e2a71faed4f352b36f51112e2 (patch)
tree788623862269c9291c444bd2d947ff3b1f80584e /Source/cmPropertyMap.h
parent1b945f95bafc9a795b092904f7c6bd84dad940e8 (diff)
downloadCMake-00d265e3c812516e2a71faed4f352b36f51112e2.zip
CMake-00d265e3c812516e2a71faed4f352b36f51112e2.tar.gz
CMake-00d265e3c812516e2a71faed4f352b36f51112e2.tar.bz2
cmPropertyMap: Use std::unordered_map as container instead of std::map
Diffstat (limited to 'Source/cmPropertyMap.h')
-rw-r--r--Source/cmPropertyMap.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmPropertyMap.h b/Source/cmPropertyMap.h
index 6284e8c..9aed349 100644
--- a/Source/cmPropertyMap.h
+++ b/Source/cmPropertyMap.h
@@ -5,11 +5,14 @@
#include "cmConfigure.h" // IWYU pragma: keep
-#include <map>
#include <string>
+#include <unordered_map>
#include <utility>
#include <vector>
+/** \class cmPropertyMap
+ * \brief String property map.
+ */
class cmPropertyMap
{
public:
@@ -34,6 +37,7 @@ public:
void RemoveProperty(const std::string& name);
// -- Lists
+
//! Get a sorted list of property keys
std::vector<std::string> GetKeys() const;
@@ -41,7 +45,7 @@ public:
std::vector<std::pair<std::string, std::string>> GetList() const;
private:
- std::map<std::string, std::string> Map_;
+ std::unordered_map<std::string, std::string> Map_;
};
#endif