From fa7dc91449a86bdb17c10324912564854dd2eb43 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sun, 18 Jul 2004 18:48:54 +0000 Subject: [PATCH] Added a new overloaded find function where the caller can set where to start searching --- amxmodx/CList.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/amxmodx/CList.h b/amxmodx/CList.h index b4c72b96..f798c99e 100755 --- a/amxmodx/CList.h +++ b/amxmodx/CList.h @@ -279,9 +279,10 @@ public: iterator iter = begin(); while (iter) iter.remove(); } - iterator find(F desc) + + iterator find(iterator startOn, const F &desc) { - iterator iter = begin(); + iterator iter = startOn; while(iter) { if (*iter == desc) @@ -291,6 +292,11 @@ public: return iter; } + iterator find(const F &desc) + { + return find(begin(), desc); + } + int size() { iterator iter = begin();