summaryrefslogtreecommitdiffstats
path: root/Source/cmPropertyMap.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-06-02 10:43:16 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-06-08 10:25:35 (GMT)
commit026f65d284deaea9f2dba41ed956fabf84e17b6d (patch)
tree679ed5f85c33cebc55184384cb476d795bbee5a3 /Source/cmPropertyMap.cxx
parent9e64e617eb295c7e2725d871225659ae7bcf7c48 (diff)
downloadCMake-026f65d284deaea9f2dba41ed956fabf84e17b6d.zip
CMake-026f65d284deaea9f2dba41ed956fabf84e17b6d.tar.gz
CMake-026f65d284deaea9f2dba41ed956fabf84e17b6d.tar.bz2
cmPropertyMap: Add GetList method
Diffstat (limited to 'Source/cmPropertyMap.cxx')
-rw-r--r--Source/cmPropertyMap.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmPropertyMap.cxx b/Source/cmPropertyMap.cxx
index a97e1f0..09b30ba 100644
--- a/Source/cmPropertyMap.cxx
+++ b/Source/cmPropertyMap.cxx
@@ -60,3 +60,13 @@ std::vector<std::string> cmPropertyMap::GetKeys() const
}
return keyList;
}
+
+std::vector<std::pair<std::string, std::string>> cmPropertyMap::GetList() const
+{
+ std::vector<std::pair<std::string, std::string>> kvList;
+ kvList.reserve(this->size());
+ for (auto const& item : *this) {
+ kvList.emplace_back(item.first, item.second.GetValue());
+ }
+ return kvList;
+}