forked from boostorg/iterator
more progress
[SVN r626]
This commit is contained in:
@@ -107,7 +107,7 @@ template <class Final
|
|||||||
iterator_comparisons<
|
iterator_comparisons<
|
||||||
downcastable<repository<Final, V, R, P, C, D> > > >
|
downcastable<repository<Final, V, R, P, C, D> > > >
|
||||||
>
|
>
|
||||||
struct iterator_adaptor : B, new_iterator_base
|
struct iterator_adaptor : B
|
||||||
{
|
{
|
||||||
typedef V value_type;
|
typedef V value_type;
|
||||||
typedef R reference;
|
typedef R reference;
|
||||||
@@ -145,6 +145,8 @@ struct iterator_adaptor : B, new_iterator_base
|
|||||||
this->downcast().base() += n;
|
this->downcast().base() += n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reference dereference() const { return *this->downcast().base(); }
|
||||||
|
|
||||||
void increment() { ++this->downcast().base(); }
|
void increment() { ++this->downcast().base(); }
|
||||||
void decrement() { --this->downcast().base(); }
|
void decrement() { --this->downcast().base(); }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user