
19 Feb
2013
19 Feb
'13
1:49 a.m.
On Mon, Feb 18, 2013 at 5:23 PM, Christian Henning <chhenning@gmail.com>wrote:
On Mon, Feb 18, 2013 at 8:13 PM, Mateusz Loskot <mateusz@loskot.net> wrote:
AFAIU, the proposal is to support equivalent to this:
scanline_read_iterator it =... std::advance (it, 7); // no I/O performed auto& buf = *it; // fetch 7th scanline data now
Ok, I just need to increase the position inside operator++. But this brings up an interesting point. What would be the difference_type of a scanline_read_iterator?
_pos is an int (presently), but I'm guessing it can only take nonnegative values (other than the sentinel -1 value)? If so, int as the difference type should be sufficient, right? - Jeff