File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,6 @@ template <typename ItrType,
107
107
class FilterIterator {
108
108
using inner_traits = std::iterator_traits<ItrType>;
109
109
using Iterator = FilterIterator;
110
- using T = typename std::iterator_traits<ItrType>::reference;
111
- using PointerT = typename std::iterator_traits<ItrType>::pointer;
112
110
113
111
PredType Pred;
114
112
ItrType Itr, End;
@@ -139,8 +137,8 @@ class FilterIterator {
139
137
Iterator operator --(int ) { auto Tmp (Itr); prev (); return Tmp; }
140
138
bool operator ==(const Iterator &Other) const { return Itr == Other.Itr ; }
141
139
bool operator !=(const Iterator &Other) const { return !operator ==(Other); }
142
- T operator *() { return *Itr; }
143
- PointerT operator ->() { return &operator *(); }
140
+ reference operator *() { return *Itr; }
141
+ pointer operator ->() { return &operator *(); }
144
142
FilterIterator (PredType Pred, ItrType Itr, ItrType End)
145
143
: Pred(Pred), Itr(Itr), End(End) {
146
144
nextMatching ();
You can’t perform that action at this time.
0 commit comments