File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =' 1.0' encoding =' utf-8' standalone =' no' ?>
2
+ <!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3
+
4
+ <issue num =" 4117" status =" New" >
5
+ <title ><tt >generator::<i >iterator</i ></tt > should provide <tt >iterator_concept</tt ></title >
6
+ <section ><sref ref =" [coro.generator.iterator]" /></section >
7
+ <submitter >Hewill Kang</submitter >
8
+ <date >07 Jul 2024</date >
9
+ <priority >99</priority >
10
+
11
+ <discussion >
12
+ <p >
13
+ <tt >generator::<i >iterator</i ></tt > currently does not provide an <tt >iterator_concept</tt >.
14
+ While this does not affect it being an <tt >input_iterator</tt >, providing <tt >iterator_concept</tt >
15
+ does improve consistency given that other C++20 iterators have such a member type alias.
16
+ </p >
17
+ </discussion >
18
+
19
+ <resolution >
20
+ <p >
21
+ This wording is relative to <paper num =" N4981" />.
22
+ </p >
23
+
24
+ <ol >
25
+ <li ><p >Modify <sref ref =" [coro.generator.iterator]" /> as indicated:</p >
26
+
27
+ <blockquote ><pre >
28
+ namespace std {
29
+ template< class Ref, class V, class Allocator>
30
+ class generator< Ref, V, Allocator> ::<i >iterator</i > {
31
+ public:
32
+ <ins >using iterator_concept = input_iterator_tag;</ins >
33
+ using value_type = value;
34
+ using difference_type = ptrdiff_t;
35
+ [… ]
36
+ };
37
+ }
38
+ </pre ></blockquote >
39
+
40
+ </li >
41
+
42
+ </ol >
43
+ </resolution >
44
+
45
+ </issue >
You can’t perform that action at this time.
0 commit comments