From 44b60862c97e5ec855d2bacd4d15f81f7ae7f410 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 15 Mar 2018 15:33:54 +0300 Subject: MUCH more effective way of removing records from iterators --- include/m_system_cpp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 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); } -- cgit v1.2.3