File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 31
31
// concept SimpleGenerator : Generator {
32
32
// type reference;
33
33
//
34
+ // // Get the current value.
35
+ // reference get();
36
+ //
37
+ // // Get the current value and then advance the generator.
34
38
// reference claimNext();
35
39
// }
36
40
//
@@ -103,15 +107,15 @@ class ArrayRefGenerator {
103
107
}
104
108
105
109
// / Return the current element of the array.
106
- reference getCurrent () const {
110
+ reference get () const {
107
111
assert (!isFinished ());
108
112
return values.front ();
109
113
}
110
114
111
115
// / Claim the current element of the array and advance past it.
112
116
reference claimNext () {
113
117
assert (!isFinished ());
114
- reference result = getCurrent ();
118
+ reference result = get ();
115
119
advance ();
116
120
return result;
117
121
}
You can’t perform that action at this time.
0 commit comments