From 5a67bd7204704c35ccc194941011ce7e864db95b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 20 Feb 2018 14:58:48 +0300 Subject: optimizing LIST<> & OBJLIST<> loops --- include/m_system_cpp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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 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; -- cgit v1.2.3