summaryrefslogtreecommitdiff
path: root/include/m_system_cpp.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-20 14:58:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-20 14:58:48 +0300
commit5a67bd7204704c35ccc194941011ce7e864db95b (patch)
tree1f14769f4080d1ae1c2d04456442af94c90bdaf5 /include/m_system_cpp.h
parent8227d51067e386cddbce4defefc34e608aed2c6b (diff)
optimizing LIST<> & OBJLIST<> loops
Diffstat (limited to 'include/m_system_cpp.h')
-rw-r--r--include/m_system_cpp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h
index 6ca2f2e354..500dd1d3c2 100644
--- a/include/m_system_cpp.h
+++ b/include/m_system_cpp.h
@@ -201,6 +201,9 @@ template<class T> struct LIST
__inline void put(int idx, T *p) { items[idx] = p; }
+ __inline T** begin() const { return items; }
+ __inline T** end() const { return items + count; }
+
protected:
T** items;
int count, limit, increment;