| 80 | } |
| 81 | |
| 82 | iterator(scan_buffer* buf) : buf_(buf) { |
| 83 | if (buf->ptr_ == buf->end_) { |
| 84 | ptr_ = get_sentinel(); |
| 85 | return; |
| 86 | } |
| 87 | ptr_ = &buf->ptr_; |
| 88 | value_ = *buf->ptr_; |
| 89 | } |
| 90 | |
| 91 | friend scan_buffer& get_buffer(iterator it) { return *it.buf_; } |
| 92 |
nothing calls this directly
no outgoing calls
no test coverage detected