From 37fc7121c2bde0925e76a9af92c979d7c311315b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 27 Jun 2013 00:25:52 +0300 Subject: [PATCH] Add a function to find the index of an item in ListDataStore --- source/listdata.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/listdata.h b/source/listdata.h index 38706f8..094b287 100644 --- a/source/listdata.h +++ b/source/listdata.h @@ -55,6 +55,14 @@ public: return items[i]; } + int find(const T &v) const + { + for(unsigned i=0; i=items.size()) -- 2.45.2