Skip to content

Commit 797a61e

Browse files
committed
Merge branch 'master' of github.com:cplusplus/LWG
2 parents 8726f93 + d994497 commit 797a61e

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

xml/issue2220.xml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ end-of-sequence iterators or both have the same underlying sequence.</ins>
7676

7777
<note>2018-08-23 Casey revises the P/R in response to LWG feedback</note>
7878

79-
</discussion>
80-
81-
<resolution>
79+
<superseded>
8280
<p>This wording is relative to <a href="https://wg21.link/n4762">N4762</a>.</p>
8381

8482
<ul>
@@ -108,6 +106,39 @@ same underlying sequence.</ins>
108106
</blockquote>
109107
</li>
110108
</ul>
109+
</superseded>
110+
111+
<note>2024-10-03; Jonathan rebases the wording on the latest WP</note>
112+
113+
</discussion>
114+
115+
<resolution>
116+
<p>This wording is relative to <paper num="n4988"/>.</p>
117+
118+
<ul>
119+
<li><p>Modify <sref ref="[re.tokiter.comp]"/> as follows:</p>
120+
<blockquote>
121+
<pre>
122+
bool operator==(const regex_token_iterator&amp; right) const;
123+
</pre>
124+
<p>
125+
<ins>-?- <i>Preconditions:</i>
126+
At least one of <tt>*this</tt> and <tt>right</tt> is an end-of-sequence iterator,
127+
or <tt>*this</tt> and <tt>right</tt> have the same underlying sequence.</ins>
128+
</p><p>
129+
-1- <i>Returns:</i> <tt>true</tt> if <tt>*this</tt> and <tt>right</tt> are both
130+
end-of-sequence iterators,
131+
or if `*this` and `right` are both suffix iterators and `suffix == right.suffix`;
132+
otherwise returns `false` if `*this` or `right` is an end-of-sequence iterator
133+
or a suffix iterator.
134+
Otherwise returns `true` if `position == right.position`, `N == right.N`,
135+
and `subs == right.subs`.
136+
Otherwise returns `false`.
137+
</p>
138+
</blockquote>
139+
</li>
140+
</ul>
141+
111142
</resolution>
112143

113144
</issue>

0 commit comments

Comments
 (0)