回答編集履歴
1
微修正
answer
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
iterator_poi_counter() : count_(0) {}
|
9
9
|
iterator_poi_counter& operator++() { ++count_; return *this; }
|
10
10
|
iterator_poi_counter& operator--() { --count_; return *this; }
|
11
|
-
int operator*() const { return
|
11
|
+
int operator*() const { return count_; } // これな。
|
12
12
|
};
|
13
13
|
|
14
14
|
int main() {
|