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;