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

Method put

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

Source from the content-addressed store, hash-verified

88
89 template<typename... Args>
90 void put(const K &key, Args &&...args) {
91 auto entry = std::make_shared<Entry>(key, V(std::forward<Args>(args)...));
92 auto result = backend.insert_or_assign(key, entry);
93 backend.insert_or_assign(key, std::shared_ptr<Entry>(entry));
94 }
95
96 template<typename... Args>
97 bool putIfAbsent(const K &key, Args &&...args) {

Callers 1

afterHookedMethodMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected