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 {
2828 return lhs.ptr < lhs.end ;
2929 }
3030
31+ constexpr friend bool operator !=(sentinel, const utf8_iterator & rhs) {
32+ return rhs.ptr < rhs.end ;
33+ }
34+
3135 constexpr friend bool operator !=(const utf8_iterator & lhs, const utf8_iterator & rhs) {
3236 return lhs.ptr != rhs.ptr ;
3337 }
Original file line number Diff line number Diff line change @@ -2487,6 +2487,10 @@ struct utf8_iterator {
24872487 return lhs.ptr < lhs.end;
24882488 }
24892489
2490+ constexpr friend bool operator!=(sentinel, const utf8_iterator & rhs) {
2491+ return rhs.ptr < rhs.end;
2492+ }
2493+
24902494 constexpr friend bool operator!=(const utf8_iterator & lhs, const utf8_iterator & rhs) {
24912495 return lhs.ptr != rhs.ptr;
24922496 }
Original file line number Diff line number Diff line change @@ -2484,6 +2484,10 @@ struct utf8_iterator {
24842484 return lhs.ptr < lhs.end ;
24852485 }
24862486
2487+ constexpr friend bool operator !=(sentinel, const utf8_iterator & rhs) {
2488+ return rhs.ptr < rhs.end ;
2489+ }
2490+
24872491 constexpr friend bool operator !=(const utf8_iterator & lhs, const utf8_iterator & rhs) {
24882492 return lhs.ptr != rhs.ptr ;
24892493 }
You can’t perform that action at this time.
0 commit comments