diff options
-rw-r--r-- | gdbsupport/reference-to-pointer-iterator.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdbsupport/reference-to-pointer-iterator.h b/gdbsupport/reference-to-pointer-iterator.h index 792659b..1579d4d 100644 --- a/gdbsupport/reference-to-pointer-iterator.h +++ b/gdbsupport/reference-to-pointer-iterator.h @@ -68,6 +68,24 @@ struct reference_to_pointer_iterator return *this; } + self_type &operator++ (int) + { + m_it++; + return *this; + } + + self_type &operator-- () + { + --m_it; + return *this; + } + + self_type &operator-- (int) + { + m_it--; + return *this; + } + bool operator== (const self_type &other) const { return m_it == other.m_it; } |