| 28 | } |
| 29 | |
| 30 | bool insert(const KeyType& key, ValueType val) { |
| 31 | std::lock_guard lock{mutex}; |
| 32 | auto ret = map.insert_or_assign(key, val); |
| 33 | return ret.second; |
| 34 | } |
| 35 | |
| 36 | bool erase(const KeyType& key) { |
| 37 | std::lock_guard lock{mutex}; |
no outgoing calls
no test coverage detected