MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / copyUnorderedMap

Function copyUnorderedMap

src/include/common/copy_constructors.h:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101template<typename K, typename V>
102static std::unordered_map<K, V> copyUnorderedMap(const std::unordered_map<K, V>& objects) {
103 std::unordered_map<K, V> result;
104 for (auto& [k, v] : objects) {
105 result.insert({k, v.copy()});
106 }
107 return result;
108}
109
110template<typename K, typename V>
111static std::map<K, V> copyMap(const std::map<K, V>& objects) {

Callers 5

copyMethod · 0.85
PropertyExpressionFunction · 0.85

Calls 2

insertMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected