Date
2024-10-03.13:06:14
Message id
14416

Content

Proposed resolution:

This wording is relative to n4988.

  • Modify [re.tokiter.comp] as follows:

    bool operator==(const regex_token_iterator& right) const;
    

    -?- Preconditions: At least one of *this and right is an end-of-sequence iterator, or *this and right have the same underlying sequence.

    -1- Returns: true if *this and right are both end-of-sequence iterators, or if `*this` and `right` are both suffix iterators and `suffix == right.suffix`; otherwise returns `false` if `*this` or `right` is an end-of-sequence iterator or a suffix iterator. Otherwise returns `true` if `position == right.position`, `N == right.N`, and `subs == right.subs`. Otherwise returns `false`.