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

Method erase

src/game/recomp_data_api.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 bool erase(const KeyType& key) {
37 std::lock_guard lock{mutex};
38 size_t num_erased = map.erase(key);
39 return num_erased != 0;
40 }
41
42 void clear() {
43 std::lock_guard lock{mutex};

Callers 15

erase_firstMethod · 0.45
eraseMethod · 0.45
eraseMethod · 0.45
erase_firstMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected