added missing operators to wxString::reverse_iterator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6b81fbd8de
commit
92d21a8a07
@ -432,11 +432,40 @@ public:
|
||||
reverse_iterator_impl operator--(int)
|
||||
{ reverse_iterator_impl tmp = *this; ++m_cur; return tmp; }
|
||||
|
||||
reverse_iterator_impl operator+(int n) const
|
||||
{ return reverse_iterator_impl(m_cur - n); }
|
||||
reverse_iterator_impl operator+(size_t n) const
|
||||
{ return reverse_iterator_impl(m_cur - n); }
|
||||
reverse_iterator_impl operator-(int n) const
|
||||
{ return reverse_iterator_impl(m_cur + n); }
|
||||
reverse_iterator_impl operator-(size_t n) const
|
||||
{ return reverse_iterator_impl(m_cur + n); }
|
||||
reverse_iterator_impl operator+=(int n)
|
||||
{ m_cur -= n; return *this; }
|
||||
reverse_iterator_impl operator+=(size_t n)
|
||||
{ m_cur -= n; return *this; }
|
||||
reverse_iterator_impl operator-=(int n)
|
||||
{ m_cur += n; return *this; }
|
||||
reverse_iterator_impl operator-=(size_t n)
|
||||
{ m_cur += n; return *this; }
|
||||
|
||||
unsigned operator-(const reverse_iterator_impl& i) const
|
||||
{ return i.m_cur - m_cur; }
|
||||
|
||||
bool operator==(const reverse_iterator_impl& ri) const
|
||||
{ return m_cur == ri.m_cur; }
|
||||
bool operator!=(const reverse_iterator_impl& ri) const
|
||||
{ return !(*this == ri); }
|
||||
|
||||
bool operator<(const reverse_iterator_impl& i) const
|
||||
{ return m_cur > i.m_cur; }
|
||||
bool operator>(const reverse_iterator_impl& i) const
|
||||
{ return m_cur < i.m_cur; }
|
||||
bool operator<=(const reverse_iterator_impl& i) const
|
||||
{ return m_cur >= i.m_cur; }
|
||||
bool operator>=(const reverse_iterator_impl& i) const
|
||||
{ return m_cur <= i.m_cur; }
|
||||
|
||||
private:
|
||||
iterator_type m_cur;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user