Skip to content

Commit ce15b4a

Browse files
committed
add == operator
1 parent 4c78b24 commit ce15b4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/forward_tlist/forward_tlist_iterator.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ namespace tlib {
3838
return ++*this, _temp;
3939
}
4040

41+
bool operator==(const iterator_base& other) const {
42+
return _pointee == other._pointee;
43+
};
44+
4145
bool operator!=(const iterator_base& other) const {
4246
return _pointee != other._pointee;
4347
};

0 commit comments

Comments
 (0)