MCPcopy Create free account
hub / github.com/cinit/TMoe / putAll

Method putAll

app/src/main/cpp/utils/HashMap.h:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111 template<typename AnyMap>
112 void putAll(const AnyMap &map) {
113 const auto entries = map.entrySet();
114 for (const auto &entry: entries) {
115 backend.insert_or_assign(entry->getKey(), std::make_shared<Entry>
116 (entry->getKey(), *entry->getValue()));
117 }
118 }
119};
120
121#endif //RPCPROTOCOL_HASHMAP_H

Callers

nothing calls this directly

Calls 3

entrySetMethod · 0.45
getKeyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected