This is an archive of the discontinued LLVM Phabricator instance.

[libc++][regex] Removes operator!=.
ClosedPublic

Authored by Mordante on Jun 18 2023, 2:54 AM.

Details

Reviewers
H-G-Hristov
philnik
Group Reviewers
Restricted Project
Commits
rGcdcfc5ec9b33: [libc++][regex] Removes operator!=.
Summary

Implements part of:

  • P1614R2 The Mothership has Landed

Diff Detail

Event Timeline

Mordante created this revision.Jun 18 2023, 2:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 18 2023, 2:54 AM
Mordante requested review of this revision.Jun 18 2023, 2:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 18 2023, 2:54 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
H-G-Hristov accepted this revision.Jun 18 2023, 2:09 PM
H-G-Hristov added a subscriber: H-G-Hristov.

LGTM (for the record)
Thank you!

It looks like these operator== are not implemented but I cannot find when they were added to the standard:
bool operator==(default_sentinel_t) const { return *this == regex_iterator(); }
bool operator==(default_sentinel_t) const { return *this == regex_token_iterator(); }

philnik accepted this revision.Jun 18 2023, 4:08 PM
This revision is now accepted and ready to land.Jun 18 2023, 4:08 PM
This revision was automatically updated to reflect the committed changes.

It looks like these operator== are not implemented but I cannot find when they were added to the standard:
bool operator==(default_sentinel_t) const { return *this == regex_iterator(); }
bool operator==(default_sentinel_t) const { return *this == regex_token_iterator(); }

Git blame tells me this is the resolution of https://cplusplus.github.io/LWG/issue3719