Set the underlying Iterator to _iter and return previous underlying Iterator.
| 35 | // Set the underlying Iterator to _iter and return |
| 36 | // previous underlying Iterator. |
| 37 | InternalIteratorBase<TValue>* Set(InternalIteratorBase<TValue>* _iter) { |
| 38 | InternalIteratorBase<TValue>* old_iter = iter_; |
| 39 | |
| 40 | iter_ = _iter; |
| 41 | if (iter_ == nullptr) { |
| 42 | valid_ = false; |
| 43 | } else { |
| 44 | Update(); |
| 45 | } |
| 46 | return old_iter; |
| 47 | } |
| 48 | |
| 49 | void SetValid(bool valid) { valid_ = valid; } |
| 50 |
no outgoing calls