| 364 | |
| 365 | template <typename K, typename V> |
| 366 | std::pair<iterator, bool> Insert(K&& k, V&& v) { |
| 367 | rep_.MaybeResize(); |
| 368 | auto r = rep_.FindOrInsert(std::forward<K>(k)); |
| 369 | const bool inserted = !r.found; |
| 370 | if (inserted) { |
| 371 | r.b->InitVal(r.index, std::forward<V>(v)); |
| 372 | } |
| 373 | return {iterator(r.b, rep_.limit(), r.index), inserted}; |
| 374 | } |
| 375 | |
| 376 | template <typename K> |
| 377 | Val& IndexOp(K&& k) { |
nothing calls this directly
no test coverage detected