iterator methods fixes (patch 1164808)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -400,11 +400,11 @@ public: \
|
||||
reverse_iterator(const itor& it) : m_ptr(it.m_ptr) { } \
|
||||
reference operator*() const { return *m_ptr; } \
|
||||
ptrop \
|
||||
itor operator++() { --m_ptr; return *this; } \
|
||||
itor operator++(int) \
|
||||
itor& operator++() { --m_ptr; return *this; } \
|
||||
const itor operator++(int) \
|
||||
{ reverse_iterator tmp = *this; --m_ptr; return tmp; } \
|
||||
itor operator--() { ++m_ptr; return *this; } \
|
||||
itor operator--(int) { itor tmp = *this; ++m_ptr; return tmp; } \
|
||||
itor& operator--() { ++m_ptr; return *this; } \
|
||||
const itor operator--(int) { itor tmp = *this; ++m_ptr; return tmp; }\
|
||||
bool operator ==(const itor& it) { return m_ptr == it.m_ptr; } \
|
||||
bool operator !=(const itor& it) { return m_ptr != it.m_ptr; } \
|
||||
}; \
|
||||
@@ -433,11 +433,11 @@ public: \
|
||||
const_reverse_iterator(const reverse_iterator& it) : m_ptr(it.m_ptr) { }\
|
||||
reference operator*() const { return *m_ptr; } \
|
||||
ptrop \
|
||||
itor operator++() { --m_ptr; return *this; } \
|
||||
itor operator++(int) \
|
||||
itor& operator++() { --m_ptr; return *this; } \
|
||||
const itor operator++(int) \
|
||||
{ itor tmp = *this; --m_ptr; return tmp; } \
|
||||
itor operator--() { ++m_ptr; return *this; } \
|
||||
itor operator--(int) { itor tmp = *this; ++m_ptr; return tmp; } \
|
||||
itor& operator--() { ++m_ptr; return *this; } \
|
||||
const itor operator--(int) { itor tmp = *this; ++m_ptr; return tmp; }\
|
||||
bool operator ==(const itor& it) { return m_ptr == it.m_ptr; } \
|
||||
bool operator !=(const itor& it) { return m_ptr != it.m_ptr; } \
|
||||
}; \
|
||||
|
Reference in New Issue
Block a user