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 3131// concept SimpleGenerator : Generator {
3232// type reference;
3333//
34+ // // Get the current value.
35+ // reference get();
36+ //
37+ // // Get the current value and then advance the generator.
3438// reference claimNext();
3539// }
3640//
@@ -103,15 +107,15 @@ class ArrayRefGenerator {
103107 }
104108
105109 // / Return the current element of the array.
106- reference getCurrent () const {
110+ reference get () const {
107111 assert (!isFinished ());
108112 return values.front ();
109113 }
110114
111115 // / Claim the current element of the array and advance past it.
112116 reference claimNext () {
113117 assert (!isFinished ());
114- reference result = getCurrent ();
118+ reference result = get ();
115119 advance ();
116120 return result;
117121 }
You can’t perform that action at this time.
0 commit comments