Skip to content

Commit 4ca090f

Browse files
committed
New issue: Unordered container local iterators should be constexpr iterators
1 parent 625f4bd commit 4ca090f

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

xml/issue4292.xml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4292" status="New">
5+
<title>Unordered container local iterators should be constexpr iterators</title>
6+
<section>
7+
<sref ref="[unord.map.overview]"/>
8+
<sref ref="[unord.multimap.overview]"/>
9+
<sref ref="[unord.set.overview]"/>
10+
<sref ref="[unord.multiset.overview]"/>
11+
</section>
12+
<submitter>Jonathan Wakely</submitter>
13+
<date>10 Jul 2025</date>
14+
<priority>99</priority>
15+
16+
<discussion>
17+
<p>
18+
The intent of <paper num="P3372R3"/> was for all container iterators to be
19+
constexpr iterators, but during application of the paper to the working draft
20+
it was observed that unordered containers don't say it for their
21+
local iterators.
22+
</p>
23+
</discussion>
24+
25+
<resolution>
26+
<p>
27+
This wording is relative to <paper num="N5008"/>.
28+
</p>
29+
30+
<ol>
31+
32+
<li><p>Modify <sref ref="[unord.map.overview]"/> as indicated:</p>
33+
<blockquote>
34+
<p>-4-
35+
The types `iterator`<ins>,</ins> <del>and</del> `const_iterator`<ins>,
36+
`local_iterator`, and `local_const_iterator`</ins>
37+
meet the constexpr iterator requirements
38+
(<sref ref="[iterator.requirements.general]"/>).
39+
</p>
40+
</blockquote>
41+
</li>
42+
43+
<li><p>Modify <sref ref="[unord.multimap.overview]"/> as indicated:</p>
44+
<blockquote>
45+
<p>-4-
46+
The types `iterator`<ins>,</ins> <del>and</del> `const_iterator`<ins>,
47+
`local_iterator`, and `local_const_iterator`</ins>
48+
meet the constexpr iterator requirements
49+
(<sref ref="[iterator.requirements.general]"/>).
50+
</p>
51+
</blockquote>
52+
</li>
53+
54+
<li><p>Modify <sref ref="[unord.set.overview]"/> as indicated:</p>
55+
<blockquote>
56+
<p>-4-
57+
The types `iterator`<ins>,</ins> <del>and</del> `const_iterator`<ins>,
58+
`local_iterator`, and `local_const_iterator`</ins>
59+
meet the constexpr iterator requirements
60+
(<sref ref="[iterator.requirements.general]"/>).
61+
</p>
62+
</blockquote>
63+
</li>
64+
65+
<li><p>Modify <sref ref="[unord.multiset.overview]"/> as indicated:</p>
66+
<blockquote>
67+
<p>-4-
68+
The types `iterator`<ins>,</ins> <del>and</del> `const_iterator`<ins>,
69+
`local_iterator`, and `local_const_iterator`</ins>
70+
meet the constexpr iterator requirements
71+
(<sref ref="[iterator.requirements.general]"/>).
72+
</p>
73+
</blockquote>
74+
</li>
75+
76+
</ol>
77+
78+
</resolution>
79+
80+
</issue>

0 commit comments

Comments
 (0)