| 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 |