summaryrefslogtreecommitdiffstats
path: root/Source/cmExportSet.h
diff options
context:
space:
mode:
authorTushar Maheshwari <tushar27192@gmail.com>2019-09-13 19:09:15 (GMT)
committerTushar Maheshwari <tushar27192@gmail.com>2019-09-19 13:50:30 (GMT)
commit71f088f53ae7f59e002ec893933d0f670347ea93 (patch)
tree52917f8ec74efaa57676a9ca26dad2a51dd75241 /Source/cmExportSet.h
parent6511fa6f3309984fc10de8471017c2bb32d8d286 (diff)
downloadCMake-71f088f53ae7f59e002ec893933d0f670347ea93.zip
CMake-71f088f53ae7f59e002ec893933d0f670347ea93.tar.gz
CMake-71f088f53ae7f59e002ec893933d0f670347ea93.tar.bz2
cmExportSet: subsume cmExportSetMap source files
Diffstat (limited to 'Source/cmExportSet.h')
-rw-r--r--Source/cmExportSet.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmExportSet.h b/Source/cmExportSet.h
index 2eee849..f0d921f 100644
--- a/Source/cmExportSet.h
+++ b/Source/cmExportSet.h
@@ -5,6 +5,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
+#include <map>
#include <memory>
#include <string>
#include <vector>
@@ -49,4 +50,16 @@ private:
std::vector<cmInstallExportGenerator const*> Installations;
};
+/// A name -> cmExportSet map with overloaded operator[].
+class cmExportSetMap : public std::map<std::string, cmExportSet>
+{
+public:
+ /** \brief Overloaded operator[].
+ *
+ * The operator is overloaded because cmExportSet has no default constructor:
+ * we do not want unnamed export sets.
+ */
+ cmExportSet& operator[](const std::string& name);
+};
+
#endif