| 544 | } |
| 545 | |
| 546 | TIterator Find(const TKey& key) { |
| 547 | TIndexIterator it = Index.find(key); |
| 548 | if (it != Index.end()) |
| 549 | List.Promote(const_cast<TItem*>(&*it)); |
| 550 | return TIterator(it); |
| 551 | } |
| 552 | |
| 553 | TIterator FindWithoutPromote(const TKey& key) const { |
| 554 | return TIterator(Index.find(key)); |