We differ from the std standard here so that we don't allow dereferencing the end iterator.
| 100 | // We differ from the std standard here so that we don't allow |
| 101 | // dereferencing the end iterator. |
| 102 | bool get(const Key &key, Value *value) const { |
| 103 | const_iterator it = find(key); |
| 104 | if (it != end()) { |
| 105 | *value = it->second; |
| 106 | return true; |
| 107 | } |
| 108 | return false; |
| 109 | } |
| 110 | |
| 111 | Value get(const Key &key, bool *has = nullptr) const { |
| 112 | const_iterator it = find(key); |