| 685 | bool MultiValue; |
| 686 | |
| 687 | TIterator FindByItem(TItem* item) { |
| 688 | std::pair<TIndexIterator, TIndexIterator> p = Index.equal_range(*item); |
| 689 | // we have to delete the exact unlinked item (there may be multiple items for one key) |
| 690 | TIndexIterator it; |
| 691 | for (it = p.first; it != p.second; ++it) |
| 692 | if (&*it == item) |
| 693 | break; |
| 694 | return (it == p.second ? End() : TIterator(it)); |
| 695 | } |
| 696 | |
| 697 | void EraseFromIndex(TItem* item) { |
| 698 | TDeleter::Destroy(item->Value); |
no test coverage detected