From: Mikko Rasa Date: Wed, 26 Jun 2013 21:25:52 +0000 (+0300) Subject: Add a function to find the index of an item in ListDataStore X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=37fc7121c2bde0925e76a9af92c979d7c311315b;p=libs%2Fgltk.git Add a function to find the index of an item in ListDataStore --- 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())