MCPcopy Create free account
hub / github.com/BanjoRecomp/BanjoRecomp / insert

Method insert

src/game/recomp_data_api.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

insertMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected