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

Method Get

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

Note that unlike std::map's operator[], this doesn't return a reference to the value.

Source from the content-addressed store, hash-verified

85
86 // Note that unlike std::map's operator[], this doesn't return a reference to the value.
87 V Get(const K& k) const {
88 const_iterator it = map_.find(k);
89 DCHECK(it != map_.end());
90 return it->second;
91 }
92
93 // Used to insert a new mapping.
94 iterator Put(const K& k, const V& v) {

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected