diff options
Diffstat (limited to 'include')
-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 b262254dfb..b0f15305de 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -233,6 +233,7 @@ template<class T> struct LIST __inline int insert(T *p) { return List_InsertPtr((SortedList*)this, p); }
__inline int remove(T *p) { return List_RemovePtr((SortedList*)this, p); }
+ __inline int indexOf(T **p) const { return int(p - items); }
__inline T* removeItem(T **p)
{
T *savePtr = *p;
|