diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-15 15:33:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-15 15:34:09 +0300 |
commit | 44b60862c97e5ec855d2bacd4d15f81f7ae7f410 (patch) | |
tree | cfe6fd232fac8c80c2f7673804352b94187d698b /include/m_system_cpp.h | |
parent | 0a03c7c9ccd36ce03bdb9feb4827314e4dd553c6 (diff) |
MUCH more effective way of removing records from iterators
Diffstat (limited to 'include/m_system_cpp.h')
-rw-r--r-- | include/m_system_cpp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index 8b94e15013..729ddcb414 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -221,6 +221,7 @@ template<class T> struct LIST __inline iterator begin() const { return iterator(base + index); }
__inline iterator end() const { return iterator(base-1); }
+ __inline int indexOf(T **p) const { return int(p - base); }
};
__inline void destroy(void) { List_Destroy((SortedList*)this); }
|