Note that unlike std::map's operator[], this doesn't return a reference to the value.
| 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) { |