| 54 | using value_type = NodeTy; |
| 55 | |
| 56 | explicit inline TreeDFIterator(NodePtr top_node) : current_(top_node) { |
| 57 | if (current_ && current_->begin() != current_->end()) |
| 58 | parent_iterators_.emplace(make_pair(current_, current_->begin())); |
| 59 | } |
| 60 | |
| 61 | // end() iterator. |
| 62 | inline TreeDFIterator() : TreeDFIterator(nullptr) {} |