summaryrefslogtreecommitdiff
blob: 07514048e7a4fe1bea02c7eb91df9887b83eeaa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://github.com/google/mozc/issues/441

--- /src/prediction/zero_query_dict.h
+++ /src/prediction/zero_query_dict.h
@@ -147,6 +147,17 @@
       return iter;
     }
 
+    iterator &operator--() {
+      ptr_ -= kTokenByteSize;
+      return *this;
+    }
+
+    iterator operator--(int) {
+      const iterator tmp(ptr_, string_array_);
+      ptr_ -= kTokenByteSize;
+      return tmp;
+    }
+
     iterator &operator-=(ptrdiff_t n) {
       ptr_ -= n * kTokenByteSize;
       return *this;