less type than p.advance(). please note, this does not imply that
list::iterator is a RandomAccessIterator. as the parameter type of
p.adavance() is not `ptrdiff_t`, which is a signed type.
Signed-off-by: Kefu Chai <kchai@redhat.com>
if (pos > end_ptr)
throw end_of_buffer();
}
+ iterator_impl& operator+=(size_t len) {
+ advance(len);
+ return *this;
+ }
const char *get_pos() {
return pos;
return p == ls->end();
//return off == bl->length();
}
-
void advance(unsigned o);
void seek(unsigned o);
char operator*() const;
+ iterator_impl& operator+=(unsigned o) {
+ advance(o);
+ return *this;
+ }
iterator_impl& operator++();
ptr get_current_ptr() const;
bool is_pointing_same_raw(const ptr& other) const;