MCPcopy Create free account
hub / github.com/Kitware/CMake / GetList

Method GetList

Source/cmPropertyMap.cxx:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65std::vector<std::pair<std::string, std::string>> cmPropertyMap::GetList() const
66{
67 using StringPair = std::pair<std::string, std::string>;
68 std::vector<StringPair> kvList;
69 kvList.reserve(this->Map_.size());
70 for (auto const& item : this->Map_) {
71 kvList.emplace_back(item.first, item.second);
72 }
73 std::sort(kvList.begin(), kvList.end(),
74 [](StringPair const& a, StringPair const& b) {
75 return a.first < b.first;
76 });
77 return kvList;
78}

Callers 6

testCreateFromTargetFunction · 0.80
CreateIfAnyMethod · 0.80
GenerateOldStyleMethod · 0.80
WriteDotNetReferencesMethod · 0.80

Calls 5

reserveMethod · 0.80
emplace_backMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 3

testCreateFromTargetFunction · 0.64
GenerateOldStyleMethod · 0.64