MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / FindOrAdd

Method FindOrAdd

Bcore/src/main/cpp/base/safe_map.h:143–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 iterator FindOrAdd(const K& k, const V& v) {
144 iterator it = find(k);
145 return it == end() ? Put(k, v) : it;
146 }
147
148 iterator FindOrAdd(const K& k) {
149 iterator it = find(k);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected