| 77 | } |
| 78 | |
| 79 | value_type* operator->() const { |
| 80 | // @todo we need to make a copy here (stored in unique_ptr) because the |
| 81 | // value_type appears to be pair<const K, V> instead of <K, V> or something |
| 82 | // related... |
| 83 | cached_value_ptr_ = std::make_unique<value_type>(**this); |
| 84 | return cached_value_ptr_.get(); |
| 85 | } |
| 86 | |
| 87 | iterator& operator++() { |
| 88 | std::visit([](auto& it) { ++it; }, it_var); |