File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ struct utf8_iterator {
28
28
return lhs.ptr < lhs.end ;
29
29
}
30
30
31
+ constexpr friend bool operator !=(sentinel, const utf8_iterator & rhs) {
32
+ return rhs.ptr < rhs.end ;
33
+ }
34
+
31
35
constexpr friend bool operator !=(const utf8_iterator & lhs, const utf8_iterator & rhs) {
32
36
return lhs.ptr != rhs.ptr ;
33
37
}
Original file line number Diff line number Diff line change @@ -2487,6 +2487,10 @@ struct utf8_iterator {
2487
2487
return lhs.ptr < lhs.end;
2488
2488
}
2489
2489
2490
+ constexpr friend bool operator!=(sentinel, const utf8_iterator & rhs) {
2491
+ return rhs.ptr < rhs.end;
2492
+ }
2493
+
2490
2494
constexpr friend bool operator!=(const utf8_iterator & lhs, const utf8_iterator & rhs) {
2491
2495
return lhs.ptr != rhs.ptr;
2492
2496
}
Original file line number Diff line number Diff line change @@ -2484,6 +2484,10 @@ struct utf8_iterator {
2484
2484
return lhs.ptr < lhs.end ;
2485
2485
}
2486
2486
2487
+ constexpr friend bool operator !=(sentinel, const utf8_iterator & rhs) {
2488
+ return rhs.ptr < rhs.end ;
2489
+ }
2490
+
2487
2491
constexpr friend bool operator !=(const utf8_iterator & lhs, const utf8_iterator & rhs) {
2488
2492
return lhs.ptr != rhs.ptr ;
2489
2493
}
You can’t perform that action at this time.
0 commit comments